3 /** \brief /** \brief Set or delete an NSH header entry keyed by NSP/NSI
4 @param client_index - opaque cookie to identify the sender
5 @param context - sender context, to match reply w/ request
6 @param is_add - add address if non-zero, else delete
7 @param nsp_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI
8 @param md_type - metadata type [1|2] - only MDType1 supported today
9 @param ver_o_c - version, O-bit and C-bit (see nsh_packet.h)
10 @param ttl - indicates the maximum SFF hops for an SFP
11 @param length - header length in n x 32bits, should be 6 for MDtype1
12 @param next_protocol - next protocol encapsulated behind NSH header: 1=Ethernet, 2=IP4, 3=IP6
13 @param c1 - 32bit Metadata type1 field (context1)
14 @param c2 - 32bit Metadata type1 field (context2)
15 @param c3 - 32bit Metadata type1 field (context3)
16 @param c4 - 32bit Metadata type1 field (context4)
17 @param tlvs - Metadata Type 2 only, Type Length Value metadata.
19 define nsh_add_del_entry {
37 /** \brief Reply from adding NSH entry (nsh_add_del_entry)
38 @param context - sender context, to match reply w/ request
39 @param retval - 0 means all ok
41 define nsh_add_del_entry_reply {
48 define nsh_entry_dump {
54 define nsh_entry_details {
71 /** \brief Set or delete a mapping from one NSH header to another and its egress (decap to inner packet, encap NSH with outer header)
72 @param client_index - opaque cookie to identify the sender
73 @param context - sender context, to match reply w/ request
74 @param is_add - add address if non-zero, else delete
75 @param nsh_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI
76 @param mapped_nsp_nsi - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI this may be ~0
77 if next action is to decap to NSH next protocol
78 Note the following heuristic:
79 - if nsp_nsi == mapped_nsp_nsi then use-case is like SFC SFF
80 - if nsp_nsi != mapped_nsp_nsi then use-case is like SFC SF
81 Note: these are heuristics. Rules about NSI decrement are out of scope
82 @param sw_if_index - index number of outer encap for NSH egress
83 @param next_node - explicitly which node to send to
84 Note the above parameters are instantiated by "encap-gre-intf <x>" means sw_if_index x, next_node gre-input
86 define nsh_add_del_map {
98 /** \brief Reply from adding NSH map (nsh_add_del_map)
99 @param context - sender context, to match reply w/ request
100 @param retval - 0 means all ok
102 define nsh_add_del_map_reply {
108 define nsh_map_dump {
114 define nsh_map_details {