linux-stable-rt/net/core
Eric Dumazet 7004bf252c net: add tx_packets/tx_bytes/tx_dropped counters in struct netdev_queue
offsetof(struct net_device, features)=0x44
offsetof(struct net_device, stats.tx_packets)=0x54
offsetof(struct net_device, stats.tx_bytes)=0x5c
offsetof(struct net_device, stats.tx_dropped)=0x6c

Network drivers that touch dev->stats.tx_packets/stats.tx_bytes in their
tx path can slow down SMP operations, since they dirty a cache line
that should stay shared (dev->features is needed in rx and tx paths)

We could move away stats field in net_device but it wont help that much.
(Two cache lines dirtied in tx path, we can do one only)

Better solution is to add tx_packets/tx_bytes/tx_dropped in struct
netdev_queue because this structure is already touched in tx path and
counters updates will then be free (no increase in size)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-05-18 15:15:06 -07:00
..
Makefile
datagram.c Network Drop Monitor: Fix skb_kill_datagram 2009-05-08 14:57:01 -07:00
dev.c net: add tx_packets/tx_bytes/tx_dropped counters in struct netdev_queue 2009-05-18 15:15:06 -07:00
dev_mcast.c
drop_monitor.c drop_monitor: Update netlink protocol to include netlink attribute header in alert message 2009-04-27 03:17:31 -07:00
dst.c
ethtool.c
fib_rules.c ipv4: remove an unused parameter from configure method of fib_rules_ops. 2009-05-17 11:59:45 -07:00
filter.c
flow.c
gen_estimator.c
gen_stats.c
iovec.c tun: fix tun_chr_aio_write so that aio works 2009-04-21 05:42:46 -07:00
kmap_skb.h
link_watch.c
neighbour.c
net-sysfs.c
net-sysfs.h
net-traces.c
net_namespace.c netns 2/2: extract net_create() 2009-05-04 11:12:14 -07:00
netevent.c
netpoll.c
pktgen.c
request_sock.c
rtnetlink.c
scm.c
skb_dma_map.c
skbuff.c net: update skb_recycle_check() for hardware timestamping changes 2009-05-06 16:49:18 -07:00
sock.c
stream.c tcp: tcp_prequeue() can use keyed wakeups 2009-05-17 20:44:43 -07:00
sysctl_net_core.c
user_dma.c
utils.c