]> git.baikalelectronics.ru Git - kernel.git/commit
veth: reduce stat overhead
authorEric Dumazet <edumazet@google.com>
Sat, 29 Dec 2012 16:02:43 +0000 (16:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Dec 2012 10:31:58 +0000 (02:31 -0800)
commit337bf0f1fbab559a814c7b2ac696670eb3a8110a
tree0658c7765a2b6bca62f7d6f6ede901d41bd89bf6
parente473e441facd3cafa04e0d91616a25c6ea43dfbe
veth: reduce stat overhead

veth stats are a bit bloated. There is no need to account transmit
and receive stats, since they are absolutely symmetric.

Also use a per device atomic64_t for the dropped counter, as it
should never be used in fast path.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c
include/linux/netdevice.h