aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-09-02 09:34:54 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-04 00:27:25 -0400
commit8b7ed2d91d6afb0b55ba75f94b66e51f70783a46 (patch)
tree7bd59ac4b18e8d98dc4a215d20024fdabae713bd
parentc48268611a3df84a9250d2fc34ad671cdae43440 (diff)
iptunnels: remove net arg from iptunnel_xmit()
This argument is not used, let's remove it. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/vxlan.c3
-rw-r--r--include/net/ip_tunnels.h3
-rw-r--r--net/ipv4/ip_tunnel.c3
-rw-r--r--net/ipv4/ip_tunnel_core.c3
-rw-r--r--net/ipv6/sit.c4
-rw-r--r--net/openvswitch/vport-gre.c2
6 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 8f6d6c1153ce..e25c97dfbacd 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1528,8 +1528,7 @@ int vxlan_xmit_skb(struct net *net, struct vxlan_sock *vs,
1528 if (err) 1528 if (err)
1529 return err; 1529 return err;
1530 1530
1531 return iptunnel_xmit(net, rt, skb, src, dst, 1531 return iptunnel_xmit(rt, skb, src, dst, IPPROTO_UDP, tos, ttl, df);
1532 IPPROTO_UDP, tos, ttl, df);
1533} 1532}
1534EXPORT_SYMBOL_GPL(vxlan_xmit_skb); 1533EXPORT_SYMBOL_GPL(vxlan_xmit_skb);
1535 1534
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 0ce316bb3c65..94fe8fd07bc9 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -146,8 +146,7 @@ static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
146} 146}
147 147
148int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto); 148int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto);
149int iptunnel_xmit(struct net *net, struct rtable *rt, 149int iptunnel_xmit(struct rtable *rt, struct sk_buff *skb,
150 struct sk_buff *skb,
151 __be32 src, __be32 dst, __u8 proto, 150 __be32 src, __be32 dst, __u8 proto,
152 __u8 tos, __u8 ttl, __be16 df); 151 __u8 tos, __u8 ttl, __be16 df);
153 152
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c
index 830de3f4e293..0a6cf0e69478 100644
--- a/net/ipv4/ip_tunnel.c
+++ b/net/ipv4/ip_tunnel.c
@@ -654,8 +654,7 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
654 } 654 }
655 } 655 }
656 656
657 err = iptunnel_xmit(tunnel->net, rt, skb, 657 err = iptunnel_xmit(rt, skb, fl4.saddr, fl4.daddr, protocol,
658 fl4.saddr, fl4.daddr, protocol,
659 ip_tunnel_ecn_encap(tos, inner_iph, skb), ttl, df); 658 ip_tunnel_ecn_encap(tos, inner_iph, skb), ttl, df);
660 iptunnel_xmit_stats(err, &dev->stats, dev->tstats); 659 iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
661 660
diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunnel_core.c
index 850525b34899..e82045842351 100644
--- a/net/ipv4/ip_tunnel_core.c
+++ b/net/ipv4/ip_tunnel_core.c
@@ -46,8 +46,7 @@
46#include <net/netns/generic.h> 46#include <net/netns/generic.h>
47#include <net/rtnetlink.h> 47#include <net/rtnetlink.h>
48 48
49int iptunnel_xmit(struct net *net, struct rtable *rt, 49int iptunnel_xmit(struct rtable *rt, struct sk_buff *skb,
50 struct sk_buff *skb,
51 __be32 src, __be32 dst, __u8 proto, 50 __be32 src, __be32 dst, __u8 proto,
52 __u8 tos, __u8 ttl, __be16 df) 51 __u8 tos, __u8 ttl, __be16 df)
53{ 52{
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index f18f842ac893..1d1458a3b7c4 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -888,8 +888,8 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
888 ttl = iph6->hop_limit; 888 ttl = iph6->hop_limit;
889 tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6)); 889 tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6));
890 890
891 err = iptunnel_xmit(dev_net(dev), rt, skb, fl4.saddr, fl4.daddr, 891 err = iptunnel_xmit(rt, skb, fl4.saddr, fl4.daddr, IPPROTO_IPV6, tos,
892 IPPROTO_IPV6, tos, ttl, df); 892 ttl, df);
893 iptunnel_xmit_stats(err, &dev->stats, dev->tstats); 893 iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
894 return NETDEV_TX_OK; 894 return NETDEV_TX_OK;
895 895
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c
index 21d5073e148e..9b3713ef831e 100644
--- a/net/openvswitch/vport-gre.c
+++ b/net/openvswitch/vport-gre.c
@@ -176,7 +176,7 @@ static int gre_tnl_send(struct vport *vport, struct sk_buff *skb)
176 176
177 skb->local_df = 1; 177 skb->local_df = 1;
178 178
179 return iptunnel_xmit(net, rt, skb, fl.saddr, 179 return iptunnel_xmit(rt, skb, fl.saddr,
180 OVS_CB(skb)->tun_key->ipv4_dst, IPPROTO_GRE, 180 OVS_CB(skb)->tun_key->ipv4_dst, IPPROTO_GRE,
181 OVS_CB(skb)->tun_key->ipv4_tos, 181 OVS_CB(skb)->tun_key->ipv4_tos,
182 OVS_CB(skb)->tun_key->ipv4_ttl, df); 182 OVS_CB(skb)->tun_key->ipv4_ttl, df);