Hi,
It seems that the OVS GRE code lacks handling of offloads (e.g to come into play with NICs that support NVGRE).
I assume we need to place a call to iptunnel_handle_offloads before invoking iptunnel_xmit, agree? so ~the quick patch below should do the work? I wasn't sure how to set the value of the 2nd param for iptunnel_handle_offloads().
Or.
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c
index f17ac96..524825f 100644
--- a/net/openvswitch/vport-gre.c
+++ b/net/openvswitch/vport-gre.c
@@ -187,6 +187,10 @@ static int gre_tnl_send(struct vport *vport, struct sk_buff *skb)
htons(IP_DF) : 0;
skb->ignore_df = 1;
+
+ skb = iptunnel_handle_offloads(skb, false, SKB_GSO_GRE);
+ if (IS_ERR(skb))
+ goto err_free_rt;
return iptunnel_xmit(skb->sk, rt, skb, fl.saddr,
tun_key->ipv4_dst, IPPROTO_GRE,