diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2016-08-02 01:33:51 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2016-08-02 01:43:40 +0800 |
commit | aec524e024e6a3f9a3a242defeab2f5c2cc62649 (patch) | |
tree | 34cea811f99b09998bc8326cfd40c41182f4d36c /nsh-plugin/nsh/nsh.api | |
parent | e566590ed0b45b1b230239a6a066f40bc4da3fb8 (diff) |
Fix tlv[0] issue of nsh_entry
PatchSet 2: delete tlv
Change-Id: I19131a8dfc441be1d7cbb92c817a3f7e583f9189
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.api')
-rw-r--r-- | nsh-plugin/nsh/nsh.api | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/nsh-plugin/nsh/nsh.api b/nsh-plugin/nsh/nsh.api index 0f9e13d..01292d1 100644 --- a/nsh-plugin/nsh/nsh.api +++ b/nsh-plugin/nsh/nsh.api @@ -24,11 +24,10 @@ define nsh_add_del_entry { u8 ver_o_c; u8 length; u8 next_protocol; - u32 c1; + u32 c1; u32 c2; - u32 c3; + u32 c3; u32 c4; - u32 tlvs[0]; }; /** \brief Reply from adding NSH entry (nsh_add_del_entry) @@ -53,19 +52,18 @@ define nsh_entry_details { u8 ver_o_c; u8 length; u8 next_protocol; - u32 c1; + u32 c1; u32 c2; - u32 c3; + u32 c3; u32 c4; - u32 tlvs[0]; }; /** \brief Set or delete a mapping from one NSH header to another and its egress (decap to inner packet, encap NSH with outer header) @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param is_add - add address if non-zero, else delete - @param nsh_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI - @param mapped_nsp_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI this may be ~0 + @param nsh_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI + @param mapped_nsp_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI this may be ~0 if next action is to decap to NSH next protocol Note the following heuristic: - if nsp_nsi == mapped_nsp_nsi then use-case is like SFC SFF |