diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-11-11 22:52:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-15 00:49:50 +0100 |
commit | aa0010f880ab542da3ad0e72992f2dc518ac68a0 (patch) | |
tree | fe030d13bb1fcbf6071b268f06c068e2a7a50b0e /net/ipv4/ip_vti.c | |
parent | ARM: net: bpf_jit_32: add VLAN instructions for BPF JIT (diff) | |
download | linux-aa0010f880ab542da3ad0e72992f2dc518ac68a0.tar.xz linux-aa0010f880ab542da3ad0e72992f2dc518ac68a0.zip |
net: convert __IPTUNNEL_XMIT() to an inline function
__IPTUNNEL_XMIT() is an ugly macro, convert it to a static
inline function, so make it more readable.
IPTUNNEL_XMIT() is unused, just remove it.
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_vti.c')
-rw-r--r-- | net/ipv4/ip_vti.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c index 1831092f999f..e0f2c88f03c1 100644 --- a/net/ipv4/ip_vti.c +++ b/net/ipv4/ip_vti.c @@ -71,15 +71,6 @@ static int vti_tunnel_bind_dev(struct net_device *dev); #define for_each_ip_tunnel_rcu(start) \ for (t = rcu_dereference(start); t; t = rcu_dereference(t->next)) -/* often modified stats are per cpu, other are shared (netdev->stats) */ -struct pcpu_tstats { - u64 rx_packets; - u64 rx_bytes; - u64 tx_packets; - u64 tx_bytes; - struct u64_stats_sync syncp; -}; - #define VTI_XMIT(stats1, stats2) do { \ int err; \ int pkt_len = skb->len; \ |