]> 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)
commitd80f7d08dc1e86eda7d1e513776dbc1e53d0db5f
tree0658c7765a2b6bca62f7d6f6ede901d41bd89bf6
parent0c4b73c552731a5f546097584ef6845cfa60fda0
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