[ovs-dev] [PATCH 2/2] datapath: Ignore key in ip_tunnel_lookup

Greg Rose gvrose8192 at gmail.com
Thu Jun 28 23:01:00 UTC 2018

The key value is always zero in ip_tunnel_lookup() for all OVS
tunnels but in received packets it is set.  Just ignore it for
the ip_tunnel_lookup() in the same manner as erspan_rcv().

Fixes: 8e53509c ("gre: introduce native tunnel support for ERSPAN")
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
 datapath/linux/compat/ip_gre.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c
index df0217e..5670bdf 100644
--- a/datapath/linux/compat/ip_gre.c
+++ b/datapath/linux/compat/ip_gre.c
@@ -272,7 +272,7 @@ static int __ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi,
 	iph = ip_hdr(skb);
 	tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags,
-				  iph->saddr, iph->daddr, tpi->key);
+				  iph->saddr, iph->daddr, 0);
 	if (tunnel) {
 		if (__iptunnel_pull_header(skb, hdr_len, tpi->proto,

More information about the dev mailing list