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 <[email protected]>
---
 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,
-- 
1.8.3.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to