summaryrefslogtreecommitdiffstats
path: root/nsh-plugin
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2017-01-18 23:32:27 +0800
committerHongjun Ni <hongjun.ni@intel.com>2017-01-26 02:09:51 +0000
commit8c6aec0ad62661058bc9b7c2f608903cb0484b24 (patch)
tree2d9cade49249887cf95d1bacf7c28fe1a8075e0f /nsh-plugin
parente28d7f4198485e26a17e7c3fb84f1e8bc75adb2d (diff)
Insert nsh-classifier as a next node into l2-input-classifier statically. NSHSFC-20
Change-Id: I77b04c804e9c4e6dd96e7f4ffee88fff8a018aeb Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 6c646d10a943617c1d49adebe9467ffe680e82fc)
Diffstat (limited to 'nsh-plugin')
-rw-r--r--nsh-plugin/nsh/nsh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index 9353378..6fb61c4 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -21,6 +21,7 @@
#include <vnet/gre/gre.h>
#include <vnet/vxlan/vxlan.h>
#include <vnet/vxlan-gpe/vxlan_gpe.h>
+#include <vnet/l2/l2_classify.h>
#include <vlibapi/api.h>
#include <vlibmemory/api.h>
@@ -1518,6 +1519,7 @@ clib_error_t *nsh_init (vlib_main_t *vm)
/* Add NSH-Classifier support */
vlib_node_add_next (vm, ip4_classify_node.index, nsh_classifier_node.index);
vlib_node_add_next (vm, ip6_classify_node.index, nsh_classifier_node.index);
+ vlib_node_add_next (vm, l2_input_classify_node.index, nsh_classifier_node.index);
vec_free(name);