This one has been sitting around for about 40 days now.

William,

can you please review?

Thanks,

- Greg

On 9/21/2018 7:54 AM, Greg Rose wrote:
From: Haishuang Yan <yanhaishu...@cmss.chinamobile.com>

Upstream commit:
     commit 51dc63e3911fbb1f0a7a32da2fe56253e2040ea4
     Author: Haishuang Yan <yanhaishu...@cmss.chinamobile.com>
     Date:   Mon Sep 10 22:19:48 2018 +0800

     erspan: fix error handling for erspan tunnel

     When processing icmp unreachable message for erspan tunnel, tunnel id
     should be erspan_net_id instead of ipgre_net_id.

     Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
     Cc: William Tu <u9012...@gmail.com>
     Signed-off-by: Haishuang Yan <yanhaishu...@cmss.chinamobile.com>
     Acked-by: William Tu <u9012...@gmail.com>
     Signed-off-by: David S. Miller <da...@davemloft.net>

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

diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c
index b7322c5..6ac2dd9 100644
--- a/datapath/linux/compat/ip_gre.c
+++ b/datapath/linux/compat/ip_gre.c
@@ -312,6 +312,9 @@ static int ipgre_rcv(struct sk_buff *skb, const struct 
tnl_ptk_info *tpi,
if (tpi->proto == htons(ETH_P_TEB))
                itn = net_generic(net, gre_tap_net_id);
+       else if (tpi->proto == htons(ETH_P_ERSPAN) ||
+                tpi->proto == htons(ETH_P_ERSPAN2))
+               itn = net_generic(net, erspan_net_id);
        else
                itn = net_generic(net, ipgre_net_id);

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to