]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: use struct netdev_queue counters instead of dev->stats
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 18 May 2009 00:35:38 +0000 (00:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 22:15:06 +0000 (15:15 -0700)
commit7df9762f15fd4151f3eef1267231e42e31631056
tree5e99e5e58ca2e5e046d47963773ef66857bec46a
parent53354ce663eb53d4dcc0ea5731acb6bc4e24323e
vlan: use struct netdev_queue counters instead of dev->stats

We can update netdev_queue tx_bytes/tx_packets/tx_dropped counters instead
of dev->stats ones, to reduce number of cache lines dirtied in xmit path.

This fixes a performance problem on SMP when many different cpus take
vlan tx path.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c
net/8021q/vlanproc.c