add nsh to xvlan-gpe next decap node list 85/4485/1
authorGabriel Ganne <[email protected]>
Tue, 27 Dec 2016 14:23:27 +0000 (15:23 +0100)
committerGabriel Ganne <[email protected]>
Wed, 28 Dec 2016 07:50:40 +0000 (08:50 +0100)
Change-Id: Ie6d9ad0ae601d93569cd1624f10b61402b7e88bf
Signed-off-by: Gabriel Ganne <[email protected]>
nsh-plugin/nsh/nsh.c

index 5b260e0..9353378 100644 (file)
@@ -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);