|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
25 #include <vnet/ethernet/p2p_ethernet.api_enum.h>
26 #include <vnet/ethernet/p2p_ethernet.api_types.h>
28 #define REPLY_MSG_ID_BASE p2p_main.msg_id_base
40 u32 p2pe_if_index = ~0;
45 rv = VNET_API_ERROR_INVALID_SW_IF_INDEX;
50 rv = VNET_API_ERROR_INVALID_SW_IF_INDEX_2;
83 rv = VNET_API_ERROR_INVALID_SW_IF_INDEX;
94 #include <vnet/ethernet/p2p_ethernet.api.c>
Delete a point-to-point (p2p) Ethernet sub-interface.
#define REPLY_MACRO2(t, body)
#define clib_memcpy(d, s, n)
vl_api_interface_index_t parent_if_index
void vl_api_p2p_ethernet_del_t_handler(vl_api_p2p_ethernet_del_t *mp)
vl_api_interface_index_t parent_if_index
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_mac_address_t remote_mac
vl_api_mac_address_t remote_mac
int p2p_ethernet_add_del(vlib_main_t *vm, u32 parent_if_index, u8 *client_mac, u32 p2pe_subif_id, int is_add, u32 *p2pe_if_index)
static void setup_message_id_table(api_main_t *am)
#define BAD_SW_IF_INDEX_LABEL
vl_api_interface_index_t sw_if_index
static uword vnet_sw_if_index_is_api_valid(u32 sw_if_index)
VLIB_API_INIT_FUNCTION(p2p_ethernet_api_hookup)
static clib_error_t * p2p_ethernet_api_hookup(vlib_main_t *vm)
#define REPLY_MSG_ID_BASE
static vlib_main_t * vlib_get_main(void)
void vl_api_p2p_ethernet_add_t_handler(vl_api_p2p_ethernet_add_t *mp)
Create a point-to-point (p2p) Ethernet sub-interface.