diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2017-01-18 23:32:27 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2017-01-18 23:32:27 +0800 |
commit | 6c646d10a943617c1d49adebe9467ffe680e82fc (patch) | |
tree | 771994550cf1717443392565bfadb36230657ebe /nsh-plugin | |
parent | 7a43143576f0823ea45e9c58b11b8890b1321a5f (diff) |
Insert nsh-classifier as a next node into l2-input-classifier statically. NSHSFC-20v17.01-rc2
Change-Id: I77b04c804e9c4e6dd96e7f4ffee88fff8a018aeb
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin')
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index d7d799b..46a651a 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> @@ -1517,6 +1518,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); |