diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-11-11 16:52:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-14 18:49:50 -0500 |
commit | aa0010f880ab542da3ad0e72992f2dc518ac68a0 (patch) | |
tree | fe030d13bb1fcbf6071b268f06c068e2a7a50b0e /net/ipv6/ip6_gre.c | |
parent | bf0098f22ca7b59e8844ac6882bbae230d34b98d (diff) |
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/ipv6/ip6_gre.c')
-rw-r--r-- | net/ipv6/ip6_gre.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 12aa473e9793..672101db71ee 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c | |||
@@ -116,15 +116,6 @@ static u32 HASH_ADDR(const struct in6_addr *addr) | |||
116 | #define for_each_ip_tunnel_rcu(start) \ | 116 | #define for_each_ip_tunnel_rcu(start) \ |
117 | for (t = rcu_dereference(start); t; t = rcu_dereference(t->next)) | 117 | for (t = rcu_dereference(start); t; t = rcu_dereference(t->next)) |
118 | 118 | ||
119 | /* often modified stats are per cpu, other are shared (netdev->stats) */ | ||
120 | struct pcpu_tstats { | ||
121 | u64 rx_packets; | ||
122 | u64 rx_bytes; | ||
123 | u64 tx_packets; | ||
124 | u64 tx_bytes; | ||
125 | struct u64_stats_sync syncp; | ||
126 | }; | ||
127 | |||
128 | static struct rtnl_link_stats64 *ip6gre_get_stats64(struct net_device *dev, | 119 | static struct rtnl_link_stats64 *ip6gre_get_stats64(struct net_device *dev, |
129 | struct rtnl_link_stats64 *tot) | 120 | struct rtnl_link_stats64 *tot) |
130 | { | 121 | { |