X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fgre%2Finterface.c;h=f5a1bde527f3d384c6fac76741be8c41bbc658e5;hb=07bbaef593939e9d03ba131e03296587472514ce;hp=6efa3da13b8ae8c75ea872ad7847a9115c308997;hpb=0b04209edac55487c108ff5f2faf51cbd4c2cee7;p=vpp.git diff --git a/src/vnet/gre/interface.c b/src/vnet/gre/interface.c index 6efa3da13b8..f5a1bde527f 100644 --- a/src/vnet/gre/interface.c +++ b/src/vnet/gre/interface.c @@ -377,7 +377,12 @@ vnet_gre_tunnel_add (vnet_gre_tunnel_add_del_args_t * a, } /* Set GRE tunnel interface output node (not used for L3 payload) */ - vnet_set_interface_output_node (vnm, hw_if_index, gre_encap_node.index); + if (GRE_TUNNEL_TYPE_ERSPAN == t->type) + vnet_set_interface_output_node (vnm, hw_if_index, + gre_erspan_encap_node.index); + else + vnet_set_interface_output_node (vnm, hw_if_index, + gre_teb_encap_node.index); hi = vnet_get_hw_interface (vnm, hw_if_index); sw_if_index = hi->sw_if_index;