FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | lcp_itf_pair_names_t_ |
struct | lcp_itf_match_t |
struct | lcp_itf_pair_sweep_ctx_t_ |
Macros | |
#define | LCP_ITF_PAIR_DBG(...) vlib_log_notice (lcp_itf_pair_logger, __VA_ARGS__); |
#define | LCP_ITF_PAIR_INFO(...) vlib_log_notice (lcp_itf_pair_logger, __VA_ARGS__); |
#define | LCP_ITF_PAIR_ERR(...) vlib_log_err (lcp_itf_pair_logger, __VA_ARGS__); |
Typedefs | |
typedef struct lcp_itf_pair_names_t_ | lcp_itf_pair_names_t |
typedef struct lcp_itf_pair_sweep_ctx_t_ | lcp_itf_pair_sweep_ctx_t |
Variables | |
static vlib_log_class_t | lcp_itf_pair_logger |
lcp_itf_pair_t * | lcp_itf_pair_pool = NULL |
Pool of LIP objects. More... | |
static uword * | lip_db_by_vif |
DBs of interface-pair objects: More... | |
index_t * | lip_db_by_phy |
Retreive the pair in the DP. More... | |
u32 * | lip_db_by_host |
static lcp_itf_pair_vft_t * | lcp_itf_vfts = NULL |
vector of virtual function table More... | |
const char * | lcp_itf_l3_feat_names [N_LCP_ITF_HOST][N_AF] |
const fib_route_path_flags_t | lcp_itf_route_path_flags [N_LCP_ITF_HOST] |
static lcp_itf_pair_names_t * | lipn_names |
static vlib_node_registration_t | lcp_itf_pair_process_node |
(constructor) VLIB_REGISTER_NODE (lcp_itf_pair_process_node) More... | |
#define LCP_ITF_PAIR_DBG | ( | ... | ) | vlib_log_notice (lcp_itf_pair_logger, __VA_ARGS__); |
Definition at line 76 of file lcp_interface.c.
#define LCP_ITF_PAIR_ERR | ( | ... | ) | vlib_log_err (lcp_itf_pair_logger, __VA_ARGS__); |
Definition at line 82 of file lcp_interface.c.
#define LCP_ITF_PAIR_INFO | ( | ... | ) | vlib_log_notice (lcp_itf_pair_logger, __VA_ARGS__); |
Definition at line 79 of file lcp_interface.c.
typedef struct lcp_itf_pair_names_t_ lcp_itf_pair_names_t |
typedef struct lcp_itf_pair_sweep_ctx_t_ lcp_itf_pair_sweep_ctx_t |
Definition at line 85 of file lcp_interface.c.
u32 lcp_itf_num_pairs | ( | void | ) |
int lcp_itf_pair_add | ( | u32 | host_sw_if_index, |
u32 | phy_sw_if_index, | ||
u8 * | host_name, | ||
u32 | host_index, | ||
lip_host_type_t | host_type, | ||
u8 * | ns | ||
) |
Create an interface-pair.
Definition at line 245 of file lcp_interface.c.
|
static |
int lcp_itf_pair_create | ( | u32 | phy_sw_if_index, |
u8 * | host_if_name, | ||
lip_host_type_t | host_if_type, | ||
u8 * | ns, | ||
u32 * | host_sw_if_indexp | ||
) |
Create an interface-pair from PHY sw_if_index and tap name.
Definition at line 727 of file lcp_interface.c.
int lcp_itf_pair_del | ( | u32 | phy_sw_if_index | ) |
Definition at line 410 of file lcp_interface.c.
int lcp_itf_pair_delete | ( | u32 | phy_sw_if_index | ) |
Delete a LCP_ITF_PAIR.
Definition at line 499 of file lcp_interface.c.
|
static |
Definition at line 474 of file lcp_interface.c.
Definition at line 707 of file lcp_interface.c.
Find a interface-pair object from the host interface.
host_sw_if_index | host interface |
Definition at line 165 of file lcp_interface.c.
|
static |
Definition at line 680 of file lcp_interface.c.
lcp_itf_pair_t* lcp_itf_pair_get | ( | u32 | index | ) |
Get an interface-pair object from its VPP index.
Definition at line 156 of file lcp_interface.c.
|
static |
|
static |
|
static |
void lcp_itf_pair_register_vft | ( | lcp_itf_pair_vft_t * | lcp_itf_vft | ) |
Definition at line 71 of file lcp_interface.c.
int lcp_itf_pair_replace_begin | ( | void | ) |
Begin and End the replace process.
Definition at line 1049 of file lcp_interface.c.
int lcp_itf_pair_replace_end | ( | void | ) |
Definition at line 1076 of file lcp_interface.c.
void lcp_itf_pair_show | ( | u32 | phy_sw_if_index | ) |
Definition at line 132 of file lcp_interface.c.
void lcp_itf_pair_walk | ( | lcp_itf_pair_walk_cb_t | cb, |
void * | ctx | ||
) |
Walk/visit each of the interface pairs.
Definition at line 514 of file lcp_interface.c.
Definition at line 1037 of file lcp_interface.c.
Definition at line 116 of file lcp_interface.c.
Definition at line 1062 of file lcp_interface.c.
|
static |
|
static |
Definition at line 220 of file lcp_interface.c.
|
static |
Definition at line 640 of file lcp_interface.c.
|
static |
Definition at line 213 of file lcp_interface.c.
|
static |
|
static |
|
static |
VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION | ( | lcp_itf_pair_link_up_down | ) |
VNET_SW_INTERFACE_ADD_DEL_FUNCTION | ( | lcp_itf_phy_add | ) |
const char* lcp_itf_l3_feat_names[N_LCP_ITF_HOST][N_AF] |
Definition at line 196 of file lcp_interface.c.
|
static |
Definition at line 42 of file lcp_interface.c.
lcp_itf_pair_t* lcp_itf_pair_pool = NULL |
Pool of LIP objects.
Definition at line 47 of file lcp_interface.c.
|
static |
(constructor) VLIB_REGISTER_NODE (lcp_itf_pair_process_node)
Definition at line 1121 of file lcp_interface.c.
const fib_route_path_flags_t lcp_itf_route_path_flags[N_LCP_ITF_HOST] |
Definition at line 207 of file lcp_interface.c.
|
static |
vector of virtual function table
Definition at line 68 of file lcp_interface.c.
u32* lip_db_by_host |
Definition at line 63 of file lcp_interface.c.
index_t* lip_db_by_phy |
Retreive the pair in the DP.
Definition at line 62 of file lcp_interface.c.
|
static |
DBs of interface-pair objects:
Definition at line 61 of file lcp_interface.c.
|
static |
Definition at line 533 of file lcp_interface.c.