summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh/nsh.h
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-12-02 20:57:40 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-12-02 20:57:40 +0800
commitb1f3eb9909de2627600212a7812f418d1cc2fc93 (patch)
treebccb7d7cba3ebff95181a4f77b19cc706ccbbece /nsh-plugin/nsh/nsh.h
parentb412048cae497643a794c1d2c6ce1deb65ef38e7 (diff)
Add NSH Classifier feature in NSH_SFC
nsp and nsi is passed via vnet_buffer(b0)->l2_classify.opaque_index Change-Id: I8c58201b0ccbb10527adf78471d8d87cff50958a Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.h')
-rw-r--r--nsh-plugin/nsh/nsh.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/nsh-plugin/nsh/nsh.h b/nsh-plugin/nsh/nsh.h
index 781245b..7a8e54e 100644
--- a/nsh-plugin/nsh/nsh.h
+++ b/nsh-plugin/nsh/nsh.h
@@ -100,6 +100,8 @@ nsh_main_t nsh_main;
vlib_node_t * vxlan4_input_node = 0;
vlib_node_t * vxlan6_input_node = 0;
+vlib_node_t * ip4_classify_node = 0;
+vlib_node_t * ip6_classify_node = 0;
u8 * format_nsh_input_map_trace (u8 * s, va_list * args);
u8 * format_nsh_header_with_length (u8 * s, va_list * args);
@@ -161,12 +163,13 @@ typedef enum {
typedef enum {
NSH_ACTION_SWAP,
NSH_ACTION_PUSH,
- NSH_ACTION_POP
-};
+ NSH_ACTION_POP,
+} nsh_action_type;
typedef enum {
NSH_INPUT_TYPE,
- NSH_PROXY_TYPE
-};
+ NSH_PROXY_TYPE,
+ NSH_CLASSIFIER_TYPE,
+} nsh_entity_type;
#endif /* included_nsh_h */