linux/net/8021q
Eric Dumazet 9793241fe9 vlan: Precise RX stats accounting
With multi queue devices, its possible that several cpus call
vlan RX routines simultaneously for the same vlan device.

We update RX stats counter without any locking, so we can
get slightly wrong counters.

One possible fix is to use percpu counters, to get precise
accounting and also get guarantee of no cache line ping pongs
between cpus.

Note: this adds 16 bytes (32 bytes on 64bit arches) of percpu
data per vlan device.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-17 23:51:55 -08:00
..
Kconfig vlan: Add GVRP support 2008-07-05 21:26:57 -07:00
Makefile vlan: uninline __vlan_hwaccel_rx 2008-07-08 03:23:36 -07:00
vlan.c vlan: cleanup multiple unregistrations 2009-10-29 23:43:00 -07:00
vlan.h vlan: Precise RX stats accounting 2009-11-17 23:51:55 -08:00
vlan_core.c vlan: Precise RX stats accounting 2009-11-17 23:51:55 -08:00
vlan_dev.c vlan: Precise RX stats accounting 2009-11-17 23:51:55 -08:00
vlan_gvrp.c vlan: TCI related type and naming cleanups 2008-07-08 03:24:44 -07:00
vlan_netlink.c net: Support specifying the network namespace upon device creation. 2009-11-08 00:53:51 -08:00
vlanproc.c vlan: eliminate use of dev_base_lock 2009-11-10 22:26:30 -08:00
vlanproc.h [VLAN]: Add a net argument to proc init and cleanup calls. 2008-04-16 00:51:12 -07:00