aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-12-29 11:02:43 -0500
committerDavid S. Miller <davem@davemloft.net>2012-12-30 05:31:58 -0500
commit2681128f0ced8aa4e66f221197e183cc16d244fe (patch)
tree0658c7765a2b6bca62f7d6f6ede901d41bd89bf6 /include
parent4cafe373d40dd9893a301fa83dc99abb80a2bd0b (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 0e1b92a0c1ec..6835b5837f93 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1284,6 +1284,7 @@ struct net_device {
1284 struct pcpu_lstats __percpu *lstats; /* loopback stats */ 1284 struct pcpu_lstats __percpu *lstats; /* loopback stats */
1285 struct pcpu_tstats __percpu *tstats; /* tunnel stats */ 1285 struct pcpu_tstats __percpu *tstats; /* tunnel stats */
1286 struct pcpu_dstats __percpu *dstats; /* dummy stats */ 1286 struct pcpu_dstats __percpu *dstats; /* dummy stats */
1287 struct pcpu_vstats __percpu *vstats; /* veth stats */
1287 }; 1288 };
1288 /* GARP */ 1289 /* GARP */
1289 struct garp_port __rcu *garp_port; 1290 struct garp_port __rcu *garp_port;