Related to following upstream commit:
commit 6fa79666e24d32be1b709f5269af41ed9e829e7e
Author: Edward Cree <[email protected]>
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
---
datapath/linux/compat/include/net/ip_tunnels.h | 2 +-
datapath/linux/compat/include/net/udp_tunnel.h | 2 +-
datapath/linux/compat/ip_gre.c | 2 +-
datapath/linux/compat/ip_tunnels_core.c | 10 +---------
datapath/linux/compat/vxlan.c | 2 +-
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 3df770d..abb8ca6 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 51415e4..6b5e540 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 d585f67..05e5178 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 4a444f5..7ade6c1 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 9964be1..b22a906 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;
--
2.5.5
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev