summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@qosmos.com>2016-12-27 15:23:27 +0100
committerGabriel Ganne <gabriel.ganne@qosmos.com>2016-12-28 08:50:40 +0100
commitf41e5a94f467275e78a1f3eeff6d2dfae2a72f62 (patch)
tree10108a5135da263f28764d0056f6bfd931a09d51 /nsh-plugin/nsh
parente5fb34465725d8f606ca1210332210b71080569f (diff)
add nsh to xvlan-gpe next decap node list
Change-Id: Ie6d9ad0ae601d93569cd1624f10b61402b7e88bf Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
Diffstat (limited to 'nsh-plugin/nsh')
-rw-r--r--nsh-plugin/nsh/nsh.c4
1 files changed, 3 insertions, 1 deletions
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);