FD.io VPP  v21.06-3-gbb25fbf28
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

◆ create_p2pe_key()

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:

◆ p2p_ethernet_add_del()

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:

◆ p2p_ethernet_init()

static clib_error_t* p2p_ethernet_init ( vlib_main_t vm)
static

Definition at line 257 of file p2p_ethernet.c.

+ Here is the call graph for this function:

◆ p2p_ethernet_lookup()

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:

◆ vnet_p2p_ethernet_add_del()

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 196 of file p2p_ethernet.c.

+ Here is the call graph for this function:

Variable Documentation

◆ p2p_ethernet_add_del_command

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]",}

(constructor) VLIB_CLI_COMMAND (p2p_ethernet_add_del_command)

Definition at line 251 of file p2p_ethernet.c.

◆ p2p_main

Definition at line 23 of file p2p_ethernet.c.

vnet_p2p_ethernet_add_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:196