diff options
Diffstat (limited to 'vnet/vnet/interface.api')
-rw-r--r-- | vnet/vnet/interface.api | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/vnet/vnet/interface.api b/vnet/vnet/interface.api index de8ca68cdd8..752e79c5ed1 100644 --- a/vnet/vnet/interface.api +++ b/vnet/vnet/interface.api @@ -181,7 +181,7 @@ define sw_interface_add_del_address u8 address[16]; }; -/** \brief Reply for interface events registration +/** \brief Reply to sw_interface_add_del_address @param context - returned sender context, to match reply w/ request @param retval - return code */ @@ -207,7 +207,7 @@ define sw_interface_set_table u32 vrf_id; }; -/** \brief Reply for interface events registration +/** \brief Reply to sw_interface_set_table @param context - returned sender context, to match reply w/ request @param retval - return code */ @@ -217,6 +217,30 @@ define sw_interface_set_table_reply i32 retval; }; +/** \brief Get VRF id assigned to interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param sw_if_index - index of the interface +*/ +define sw_interface_get_table +{ + u32 client_index; + u32 context; + u32 sw_if_index; + u8 is_ipv6; +}; + +/** \brief Reply to get_sw_interface_vrf + @param context - sender context which was passed in the request + @param vrf_id - VRF id assigned to the interface +*/ +define sw_interface_get_table_reply +{ + u32 context; + i32 retval; + u32 vrf_id; +}; + /** \brief Stats counters structure @param vnet_counter_type- such as ip4, ip6, punts, etc @param is_combined - rx & tx total (all types) counts |