From f41e5a94f467275e78a1f3eeff6d2dfae2a72f62 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Tue, 27 Dec 2016 15:23:27 +0100 Subject: add nsh to xvlan-gpe next decap node list Change-Id: Ie6d9ad0ae601d93569cd1624f10b61402b7e88bf Signed-off-by: Gabriel Ganne --- nsh-plugin/nsh/nsh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index 5b260e0..9353378 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -1472,6 +1472,7 @@ clib_error_t *nsh_init (vlib_main_t *vm) nsh_main_t *nm = &nsh_main; clib_error_t * error = 0; u8 * name; + uword next_node; /* Init the main structures from VPP */ nm->vlib_main = vm; @@ -1500,8 +1501,9 @@ clib_error_t *nsh_init (vlib_main_t *vm) /* Add dispositions to nodes that feed nsh-input */ //alagalah - validate we don't really need to use the node value - vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_input_node.index); + next_node = vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_input_node.index); vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_proxy_node.index); + vxlan_gpe_register_decap_protocol (VXLAN_GPE_PROTOCOL_NSH, next_node); vlib_node_add_next (vm, vxlan6_gpe_input_node.index, nsh_input_node.index); vlib_node_add_next (vm, vxlan6_gpe_input_node.index, nsh_proxy_node.index); -- cgit 1.2.3-korg