summaryrefslogtreecommitdiff
path: root/datapath/linux
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@ovn.org>2016-08-15 14:11:11 -0700
committerPravin B Shelar <pshelar@ovn.org>2016-08-18 16:34:11 -0700
commit2a94b57160bfda85d3af8845265826e9a67301b0 (patch)
tree46b9a0a0c9955cee24a64e6f624a2338286de15e /datapath/linux
parent73daf51a451f15452d3f861d1cc816b803ced374 (diff)
downloadopenvswitch-2a94b57160bfda85d3af8845265826e9a67301b0.tar.gz
datapath: compat: handle_offloads: remove csum_help param.
Related to following upstream commit: commit 6fa79666e24d32be1b709f5269af41ed9e829e7e Author: Edward Cree <ecree@solarflare.com> Date: Thu Feb 11 21:02:31 2016 +0000 net: ip_tunnel: remove 'csum_help' argument to iptunnel_handle_offloads All users now pass false, so we can remove it, and remove the code that was conditional upon it. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'datapath/linux')
-rw-r--r--datapath/linux/compat/include/net/ip_tunnels.h2
-rw-r--r--datapath/linux/compat/include/net/udp_tunnel.h2
-rw-r--r--datapath/linux/compat/ip_gre.c2
-rw-r--r--datapath/linux/compat/ip_tunnels_core.c10
-rw-r--r--datapath/linux/compat/vxlan.c2
5 files changed, 5 insertions, 13 deletions
diff --git a/datapath/linux/compat/include/net/ip_tunnels.h b/datapath/linux/compat/include/net/ip_tunnels.h
index 3df770d9b..abb8ca63e 100644
--- a/datapath/linux/compat/include/net/ip_tunnels.h
+++ b/datapath/linux/compat/include/net/ip_tunnels.h
@@ -31,7 +31,7 @@ static inline int rpl_iptunnel_pull_header(struct sk_buff *skb, int hdr_len,
}
int ovs_iptunnel_handle_offloads(struct sk_buff *skb,
- bool csum_help, int gso_type_mask,
+ int gso_type_mask,
void (*fix_segment)(struct sk_buff *));
/* This is is required to compile upstream gre.h. gre_handle_offloads()
diff --git a/datapath/linux/compat/include/net/udp_tunnel.h b/datapath/linux/compat/include/net/udp_tunnel.h
index 51415e488..6b5e540a5 100644
--- a/datapath/linux/compat/include/net/udp_tunnel.h
+++ b/datapath/linux/compat/include/net/udp_tunnel.h
@@ -168,7 +168,7 @@ static inline int rpl_udp_tunnel_handle_offloads(struct sk_buff *skb,
fix_segment = NULL;
#endif
- return ovs_iptunnel_handle_offloads(skb, udp_csum, type, fix_segment);
+ return ovs_iptunnel_handle_offloads(skb, type, fix_segment);
}
#define udp_tunnel_handle_offloads rpl_udp_tunnel_handle_offloads
diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c
index d585f6715..05e51781f 100644
--- a/datapath/linux/compat/ip_gre.c
+++ b/datapath/linux/compat/ip_gre.c
@@ -204,7 +204,7 @@ static int rpl_gre_handle_offloads(struct sk_buff *skb, bool gre_csum)
else
fix_segment = gre_nop_fix;
- return ovs_iptunnel_handle_offloads(skb, gre_csum, type, fix_segment);
+ return ovs_iptunnel_handle_offloads(skb, type, fix_segment);
}
#else
diff --git a/datapath/linux/compat/ip_tunnels_core.c b/datapath/linux/compat/ip_tunnels_core.c
index 4a444f5b1..7ade6c1de 100644
--- a/datapath/linux/compat/ip_tunnels_core.c
+++ b/datapath/linux/compat/ip_tunnels_core.c
@@ -90,7 +90,7 @@ void rpl_iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb,
EXPORT_SYMBOL_GPL(rpl_iptunnel_xmit);
int ovs_iptunnel_handle_offloads(struct sk_buff *skb,
- bool csum_help, int gso_type_mask,
+ int gso_type_mask,
void (*fix_segment)(struct sk_buff *))
{
int err;
@@ -118,14 +118,6 @@ int ovs_iptunnel_handle_offloads(struct sk_buff *skb,
return 0;
}
- /* If packet is not gso and we are resolving any partial checksum,
- * clear encapsulation flag. This allows setting CHECKSUM_PARTIAL
- * on the outer header without confusing devices that implement
- * NETIF_F_IP_CSUM with encapsulation.
- */
- if (csum_help)
- skb->encapsulation = 0;
-
if (skb->ip_summed != CHECKSUM_PARTIAL) {
skb->ip_summed = CHECKSUM_NONE;
skb->encapsulation = 0;
diff --git a/datapath/linux/compat/vxlan.c b/datapath/linux/compat/vxlan.c
index 9964be1f7..b22a9069e 100644
--- a/datapath/linux/compat/vxlan.c
+++ b/datapath/linux/compat/vxlan.c
@@ -864,7 +864,7 @@ static int vxlan_build_skb(struct sk_buff *skb, struct dst_entry *dst,
#else
fix_segment = NULL;
#endif
- err = ovs_iptunnel_handle_offloads(skb, udp_sum, type, fix_segment);
+ err = ovs_iptunnel_handle_offloads(skb, type, fix_segment);
if (err)
goto out_free;