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 <pshe...@ovn.org>
---
 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 32790c3..3a73bcd 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. */
 
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to