From a0ceb7da50e5abbfbe82cbef552867a39be1e134 Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Mon, 25 Jul 2016 17:49:54 -0700 Subject: [PATCH] datapath: compat: unset skb encapsulation bit OVS compat layer can handle tunnel GSO packets. but it does keep skb encapsulation on for packet handled in GSO. This can confuse some NIC drivers. I have seen this issue on intel devices: >>> i40e 0000:42:00.0: TX driver issue detected, PF reset issued Following patch resets this bit in case compat layer handles the packet. VMware-BZ: 1698877 Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- datapath/linux/compat/gso.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datapath/linux/compat/gso.c b/datapath/linux/compat/gso.c index 32790c338..3a73bcdc3 100644 --- a/datapath/linux/compat/gso.c +++ b/datapath/linux/compat/gso.c @@ -186,6 +186,8 @@ static struct sk_buff *tnl_skb_gso_segment(struct sk_buff *skb, * make copy of it to restore it back. */ memcpy(cb, skb->cb, sizeof(cb)); + skb->encapsulation = 0; + /* We are handling offloads by segmenting l3 packet, so * no need to call OVS compat segmentation function. */ -- 2.20.1