[ovs-dev] [PATCH 1/3] datapath: compat: keep skb encapsulation zero on older kernel.
Pravin B Shelar
pshelar at ovn.org
Wed Aug 10 17:34:36 UTC 2016
When using compat GSO there is no need to turn on skb
encapsulation bit since OVS does not use any tunnel GSO
functionality from the networking stack.
Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
---
datapath/linux/compat/ip_tunnels_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/datapath/linux/compat/ip_tunnels_core.c b/datapath/linux/compat/ip_tunnels_core.c
index d1fe20f..bf71b02 100644
--- a/datapath/linux/compat/ip_tunnels_core.c
+++ b/datapath/linux/compat/ip_tunnels_core.c
@@ -123,7 +123,9 @@ int ovs_iptunnel_handle_offloads(struct sk_buff *skb,
* on the outer header without confusing devices that implement
* NETIF_F_IP_CSUM with encapsulation.
*/
+#ifdef USE_UPSTREAM_TUNNEL_GSO
if (csum_help)
+#endif
skb->encapsulation = 0;
if (skb->ip_summed == CHECKSUM_PARTIAL && csum_help) {
--
1.8.3.1
More information about the dev
mailing list