[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <54E5ED9D.8080206@mellanox.com>
Date: Thu, 19 Feb 2015 16:05:17 +0200
From: Or Gerlitz <ogerlitz@...lanox.com>
To: Jesse Gross <jesse@...ira.com>,
Joe Stringer <joestringer@...ira.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: TX offloads for NVGRE (OVS GRE with inner protocol being TEB)
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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists