]> git.proxmox.com Git - ovs.git/commitdiff
datapath: Use correct tunnel receive for ip6gre
authorGreg Rose <gvrose8192@gmail.com>
Wed, 9 May 2018 22:57:10 +0000 (15:57 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 22 May 2018 03:33:30 +0000 (20:33 -0700)
During backports of ip6 gre I used ovs_ip_tunnel_rcv() for the
ip6gre_rcv() function but that is wrong because it processes ipv4
tunnels.  Use the correct backported ip6 tunnel receive in ip6
tunnel.c ip6_tnl_rcv().

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
datapath/linux/compat/ip6_gre.c

index 1e2f46a38cff9ca39874b89172414c7423852632..085d04fb7b26e03f5d0956a47d85383150665ce0 100644 (file)
@@ -603,8 +603,7 @@ static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi)
 
                }
 
-               skb_reset_mac_header(skb);
-               ovs_ip_tunnel_rcv(tunnel->dev, skb, tun_dst);
+               ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, false);
                kfree(tun_dst);
                return PACKET_RCVD;
        }