From b1f3eb9909de2627600212a7812f418d1cc2fc93 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Fri, 2 Dec 2016 20:57:40 +0800 Subject: 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 --- nsh-plugin/nsh/nsh.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nsh-plugin/nsh/nsh.h') 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 */ -- cgit 1.2.3-korg