summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-11-17 08:53:49 (GMT)
committerDavid S. Miller <davem@davemloft.net>2009-11-18 07:51:57 (GMT)
commitfccaf71011b171883efee5bae321eac4760584d1 (patch)
treea44bb3d88d778891b29049700bd9611d255f8045 /net/core/dev.c
parent9793241fe92f7d9303fb221e43fc598eb065f267 (diff)
downloadlinux-fccaf71011b171883efee5bae321eac4760584d1.tar.xz
macvlan: Precise RX stats accounting
With multi queue devices, its possible that several cpus call macvlan RX routines simultaneously for the same macvlan 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 macvlan device. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions