FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
vl_api_nsh_add_del_map_t Struct Reference

Set or delete a mapping from one NSH header to another and its egress (decap to inner packet, encap NSH with outer header) More...

Data Fields

u32 client_index
 
u32 context
 
u8 is_add
 
u32 nsp_nsi
 
u32 mapped_nsp_nsi
 
u32 nsh_action
 
u32 sw_if_index
 
u32 rx_sw_if_index
 
u32 next_node
 

Detailed Description

Set or delete a mapping from one NSH header to another and its egress (decap to inner packet, encap NSH with outer header)

Template Parameters
client_index- opaque cookie to identify the sender
context- sender context, to match reply w/ request
is_add- add address if non-zero, else delete
nsh_nsi- Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI
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
  • if nsp_nsi != mapped_nsp_nsi then use-case is like SFC SF Note: these are heuristics. Rules about NSI decrement are out of scope
sw_if_index- index number of outer encap for NSH egress
next_node- explicitly which node to send to Note the above parameters are instantiated by "encap-gre-intf <x>" means sw_if_index x, next_node gre-input

Definition at line 86 of file nsh.api.

Field Documentation

◆ client_index

u32 vl_api_nsh_add_del_map_t::client_index

Definition at line 87 of file nsh.api.

◆ context

u32 vl_api_nsh_add_del_map_t::context

Definition at line 88 of file nsh.api.

◆ is_add

u8 vl_api_nsh_add_del_map_t::is_add

Definition at line 89 of file nsh.api.

◆ mapped_nsp_nsi

u32 vl_api_nsh_add_del_map_t::mapped_nsp_nsi

Definition at line 91 of file nsh.api.

◆ next_node

u32 vl_api_nsh_add_del_map_t::next_node

Definition at line 95 of file nsh.api.

◆ nsh_action

u32 vl_api_nsh_add_del_map_t::nsh_action

Definition at line 92 of file nsh.api.

◆ nsp_nsi

u32 vl_api_nsh_add_del_map_t::nsp_nsi

Definition at line 90 of file nsh.api.

◆ rx_sw_if_index

u32 vl_api_nsh_add_del_map_t::rx_sw_if_index

Definition at line 94 of file nsh.api.

◆ sw_if_index

u32 vl_api_nsh_add_del_map_t::sw_if_index

Definition at line 93 of file nsh.api.


The documentation for this struct was generated from the following file: