diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-11-17 04:53:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-17 23:51:55 -0800 |
commit | 9793241fe92f7d9303fb221e43fc598eb065f267 (patch) | |
tree | 5f7a347c3a6b32a49e54f1f6ead1c96f2351208c /drivers/ata/sata_inic162x.c | |
parent | d83345adf96bc13a5e360f4649a2e68ef968dec0 (diff) | |
download | linux-9793241fe92f7d9303fb221e43fc598eb065f267.tar.gz linux-9793241fe92f7d9303fb221e43fc598eb065f267.tar.bz2 linux-9793241fe92f7d9303fb221e43fc598eb065f267.zip |
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>
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
0 files changed, 0 insertions, 0 deletions