diff options
author | 2017-05-23 22:33:08 +0800 | |
---|---|---|
committer | 2017-05-24 22:36:18 +0800 | |
commit | 8c1fd9479513cd466f643f9f0fb132e5da91651c (patch) | |
tree | 91bbaaa33d452e8045b8b60990251448a9dba40e /nsh-plugin/nsh/nsh.h | |
parent | 63bad81f1fa6c18cffc1acdc289891262d7b2685 (diff) |
Add Eth as NSH transport. NSHSFC-31
Change-Id: Ie0bac56af68ba0b1b45baf9d9a5822fbc1b2c0ac
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.h')
-rw-r--r-- | nsh-plugin/nsh/nsh.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nsh-plugin/nsh/nsh.h b/nsh-plugin/nsh/nsh.h index 4efad8d..3d48b94 100644 --- a/nsh-plugin/nsh/nsh.h +++ b/nsh-plugin/nsh/nsh.h @@ -148,6 +148,10 @@ typedef struct { u8 *(*trace[MAX_MD2_OPTIONS]) (u8 * s, nsh_tlv_header_t * opt); uword decap_v4_next_override; + /* Feature arc indices */ + u8 input_feature_arc_index; + u8 output_feature_arc_index; + /* convenience */ vlib_main_t * vlib_main; vnet_main_t * vnet_main; @@ -156,6 +160,8 @@ typedef struct { nsh_main_t nsh_main; extern vlib_node_registration_t nsh_aware_vnf_proxy_node; +extern vlib_node_registration_t nsh_output_node; + typedef struct { u8 trace_data[256]; } nsh_input_trace_t; @@ -197,8 +203,7 @@ typedef enum { _(ENCAP_VXLAN6, "vxlan6-encap" ) \ _(DECAP_ETH_INPUT, "ethernet-input" ) \ _(ENCAP_LISP_GPE, "interface-output" ) \ -/* /\* TODO once moved to Project:NSH_SFC *\/ */ - /* _(ENCAP_ETHERNET, "*** TX TO ETHERNET ***") \ */ + _(ENCAP_ETHERNET, "nsh-eth-output") \ /* _(DECAP_IP4_INPUT, "ip4-input") \ */ /* _(DECAP_IP6_INPUT, "ip6-input" ) \ */ |