FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
p2p_ethernet.c File Reference
+ Include dependency graph for p2p_ethernet.c:

Go to the source code of this file.

Functions

static void create_p2pe_key (p2p_key_t *p2pe_key, u32 parent_if_index, u8 *client_mac)
 
u32 p2p_ethernet_lookup (u32 parent_if_index, u8 *client_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 clib_error_tvnet_p2p_ethernet_add_del (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tp2p_ethernet_init (vlib_main_t *vm)
 

Variables

p2p_ethernet_main_t p2p_main
 
static vlib_cli_command_t p2p_ethernet_add_del_command
 (constructor) VLIB_CLI_COMMAND (p2p_ethernet_add_del_command) More...
 

Function Documentation

static void create_p2pe_key ( p2p_key_t p2pe_key,
u32  parent_if_index,
u8 client_mac 
)
static

Definition at line 26 of file p2p_ethernet.c.

+ Here is the caller graph for this function:

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 
)

Definition at line 50 of file p2p_ethernet.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* p2p_ethernet_init ( vlib_main_t vm)
static

Definition at line 256 of file p2p_ethernet.c.

+ Here is the call graph for this function:

u32 p2p_ethernet_lookup ( u32  parent_if_index,
u8 client_mac 
)

Definition at line 35 of file p2p_ethernet.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vnet_p2p_ethernet_add_del ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 195 of file p2p_ethernet.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t p2p_ethernet_add_del_command
static
Initial value:
=
{
.path = "p2p_ethernet ",.function = vnet_p2p_ethernet_add_del,.short_help =
"p2p_ethernet <intfc> <mac-address> [sub-id <id> | del]",}
static clib_error_t * vnet_p2p_ethernet_add_del(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: p2p_ethernet.c:195

(constructor) VLIB_CLI_COMMAND (p2p_ethernet_add_del_command)

Definition at line 250 of file p2p_ethernet.c.

Definition at line 23 of file p2p_ethernet.c.