diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-26 20:33:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 00:30:42 -0400 |
commit | 290b895e0ba4552dfcfc4bd35759c192345b934a (patch) | |
tree | 439ffccea9fa87b28b6af2a06e562cc5a0c01f80 /include/linux/netdevice.h | |
parent | af5ef241133b602a77b682009f112e7c3f7604e5 (diff) |
tunnels: prepare percpu accounting
Tunnels are going to use percpu for their accounting.
They are going to use a new tstats field in net_device.
skb_tunnel_rx() is changed to be a wrapper around __skb_tunnel_rx()
IPTUNNEL_XMIT() is changed to be a wrapper around __IPTUNNEL_XMIT()
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 01bd4c82d982..83de0eb7a071 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1053,6 +1053,7 @@ struct net_device { | |||
1053 | union { | 1053 | union { |
1054 | void *ml_priv; | 1054 | void *ml_priv; |
1055 | struct pcpu_lstats __percpu *lstats; /* loopback stats */ | 1055 | struct pcpu_lstats __percpu *lstats; /* loopback stats */ |
1056 | struct pcpu_tstats __percpu *tstats; /* tunnel stats */ | ||
1056 | }; | 1057 | }; |
1057 | /* GARP */ | 1058 | /* GARP */ |
1058 | struct garp_port *garp_port; | 1059 | struct garp_port *garp_port; |