FD.io VPP  v16.06
Vector Packet Processing
vppjni_bridge_domain.h File Reference
+ Include dependency graph for vppjni_bridge_domain.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  l2fib_u64_mac_t
 
struct  bd_l2fib_oper_t
 
struct  bd_local_cfg_t
 
struct  bd_sw_if_oper_t
 
struct  vjbd_oper_t
 
struct  vjbd_main_t
 

Macros

#define MAC_ADDRESS_SIZE   6
 
#define BD_OPER_REFRESH_INTERVAL   2.0
 
#define BD_OPER_L2FIB_REFRESH_INTERVAL   5.0
 

Functions

always_inline u64 l2fib_mac_to_u64 (u8 *mac_address)
 
static_always_inline void vjbd_main_init (vjbd_main_t *bdm)
 
static_always_inline u32 vjbd_id_is_valid (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u32 vjbd_index_is_free (vjbd_main_t *bdm, u16 bd_index)
 
static_always_inline u32 vjbd_index_is_valid (vjbd_main_t *bdm, u16 bd_index)
 
static_always_inline u32 vjbd_id_from_name (vjbd_main_t *bdm, const u8 *bd_name)
 
static_always_inline u32 vjbd_index_from_id (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u32 vjbd_id_from_index (vjbd_main_t *bdm, u16 bd_index)
 
static_always_inline u8vjbd_name_from_id (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u8vjbd_oper_name_from_id (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline vjbd_oper_tvjbd_oper_from_id (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline void vjbd_oper_maybe_sync_from_vpp (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u32 vjbd_id_from_sw_if_index (vjbd_main_t *bdm, u32 sw_if_index)
 
static_always_inline u8vjbd_name_from_sw_if_index (vjbd_main_t *bdm, u32 sw_if_index)
 
static_always_inline u32 vjbd_oper_l2fib_index_from_mac (vjbd_oper_t *bd_oper, u8 *mac)
 
static_always_inline u32 vjbd_local_cfg_next_id (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u32 vjbd_sw_if_oper_next_index (vjbd_main_t *bdm, u32 start, u32 bd_id)
 
static_always_inline void vjbd_oper_l2fib_maybe_sync_from_vpp (vjbd_main_t *bdm)
 
static_always_inline void vjbd_l2fib_oper_reset (vjbd_main_t *bdm)
 
static_always_inline void vjbd_oper_reset (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline void vjbd_sw_if_add_del (u32 sw_if_index, u32 bd_id, u8 bvi, u8 shg, u8 is_add)
 
static_always_inline u32 vjbd_id_sw_if_count (vjbd_main_t *bdm, u32 bd_id)
 
static_always_inline u32 vjbd_find_or_add_bd (vjbd_main_t *bdm, u8 *bd_name)
 
static_always_inline void vjbd_delete_bd (vjbd_main_t *bdm, u32 bd_id)
 

Variables

vjbd_main_t vjbd_main
 

Macro Definition Documentation

#define BD_OPER_L2FIB_REFRESH_INTERVAL   5.0

Definition at line 80 of file vppjni_bridge_domain.h.

#define BD_OPER_REFRESH_INTERVAL   2.0

Definition at line 79 of file vppjni_bridge_domain.h.

#define MAC_ADDRESS_SIZE   6

Definition at line 27 of file vppjni_bridge_domain.h.

Function Documentation

always_inline u64 l2fib_mac_to_u64 ( u8 mac_address)

Definition at line 99 of file vppjni_bridge_domain.h.

+ Here is the caller graph for this function:

static_always_inline void vjbd_delete_bd ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 478 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline u32 vjbd_find_or_add_bd ( vjbd_main_t bdm,
u8 bd_name 
)

Definition at line 448 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_id_from_index ( vjbd_main_t bdm,
u16  bd_index 
)

Definition at line 186 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline u32 vjbd_id_from_name ( vjbd_main_t bdm,
const u8 bd_name 
)

Definition at line 146 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_id_from_sw_if_index ( vjbd_main_t bdm,
u32  sw_if_index 
)

Definition at line 253 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_id_is_valid ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 126 of file vppjni_bridge_domain.h.

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_id_sw_if_count ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 436 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_index_from_id ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 169 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_index_is_free ( vjbd_main_t bdm,
u16  bd_index 
)

Definition at line 131 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_index_is_valid ( vjbd_main_t bdm,
u16  bd_index 
)

Definition at line 140 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void vjbd_l2fib_oper_reset ( vjbd_main_t bdm)

Definition at line 352 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline u32 vjbd_local_cfg_next_id ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 307 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline void vjbd_main_init ( vjbd_main_t bdm)

Definition at line 118 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u8* vjbd_name_from_id ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 199 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u8* vjbd_name_from_sw_if_index ( vjbd_main_t bdm,
u32  sw_if_index 
)

Definition at line 269 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline vjbd_oper_t* vjbd_oper_from_id ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 215 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vjbd_oper_l2fib_index_from_mac ( vjbd_oper_t bd_oper,
u8 mac 
)

Definition at line 290 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline void vjbd_oper_l2fib_maybe_sync_from_vpp ( vjbd_main_t bdm)

Definition at line 339 of file vppjni_bridge_domain.h.

static_always_inline void vjbd_oper_maybe_sync_from_vpp ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 222 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u8* vjbd_oper_name_from_id ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 206 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void vjbd_oper_reset ( vjbd_main_t bdm,
u32  bd_id 
)

Definition at line 363 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void vjbd_sw_if_add_del ( u32  sw_if_index,
u32  bd_id,
u8  bvi,
u8  shg,
u8  is_add 
)

Definition at line 407 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

static_always_inline u32 vjbd_sw_if_oper_next_index ( vjbd_main_t bdm,
u32  start,
u32  bd_id 
)

Definition at line 325 of file vppjni_bridge_domain.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vjbd_main_t vjbd_main