Go to the source code of this file.
|
static void | gbp_learn_l2_cp (const gbp_learn_l2_t *gl2) |
|
static void | gbp_learn_l2_ip4_dp (const u8 *mac, const ip4_address_t *ip, u32 bd_index, u32 sw_if_index, epg_id_t epg, const ip4_address_t *outer_src, const ip4_address_t *outer_dst) |
|
static void | gbp_learn_l2_ip6_dp (const u8 *mac, const ip6_address_t *ip, u32 bd_index, u32 sw_if_index, epg_id_t epg, const ip4_address_t *outer_src, const ip4_address_t *outer_dst) |
|
static void | gbp_learn_l2_dp (const u8 *mac, u32 bd_index, u32 sw_if_index, epg_id_t epg, const ip4_address_t *outer_src, const ip4_address_t *outer_dst) |
|
static void | gbp_learn_get_outer (const ethernet_header_t *eh0, ip4_address_t *outer_src, ip4_address_t *outer_dst) |
|
static uword | gbp_learn_l2 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static u8 * | format_gbp_learn_l2_trace (u8 *s, va_list *args) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (gbp_learn_l2_node, gbp_learn_l2) |
|
static void | gbp_learn_l3_cp (const gbp_learn_l3_t *gl3) |
|
static void | gbp_learn_ip4_dp (const ip4_address_t *ip, u32 fib_index, u32 sw_if_index, epg_id_t epg, const ip4_address_t *outer_src, const ip4_address_t *outer_dst) |
|
static void | gbp_learn_ip6_dp (const ip6_address_t *ip, u32 fib_index, u32 sw_if_index, epg_id_t epg, const ip4_address_t *outer_src, const ip4_address_t *outer_dst) |
|
static uword | gbp_learn_l3 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, fib_protocol_t fproto) |
|
static u8 * | format_gbp_learn_l3_trace (u8 *s, va_list *args) |
|
static uword | gbp_learn_ip4 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | gbp_learn_ip6 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (gbp_learn_ip4_node, gbp_learn_ip4) |
|
| VNET_FEATURE_INIT (gbp_learn_ip4, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (gbp_learn_ip6_node, gbp_learn_ip6) |
|
| VNET_FEATURE_INIT (gbp_learn_ip6, static) |
|
void | gbp_learn_enable (u32 sw_if_index, gbb_learn_mode_t mode) |
|
void | gbp_learn_disable (u32 sw_if_index, gbb_learn_mode_t mode) |
|
static clib_error_t * | gbp_learn_init (vlib_main_t *vm) |
|
◆ foreach_gbp_learn
#define foreach_gbp_learn _(DROP, "drop") |
◆ GBP_ENDPOINT_HASH_LEARN_RATE
#define GBP_ENDPOINT_HASH_LEARN_RATE (1e-2) |
The maximum learning rate per-hashed EP.
Definition at line 51 of file gbp_learn.c.
◆ GBP_LEARN_DBG
#define GBP_LEARN_DBG |
( |
|
... | ) |
vlib_log_debug (gbp_learn_main.gl_logger, __VA_ARGS__); |
◆ gbp_learn_l2_t
◆ gbp_learn_l2_trace_t
◆ gbp_learn_l3_t
◆ gbp_learn_l3_trace_t
◆ gbp_learn_main_t
Grouping of global data for the GBP source EPG classification feature.
◆ gbp_learn_error_t
Enumerator |
---|
GBP_LEARN_N_ERROR | |
Definition at line 61 of file gbp_learn.c.
◆ gbp_learn_next_t
Enumerator |
---|
GBP_LEARN_N_NEXT | |
Definition at line 75 of file gbp_learn.c.
◆ format_gbp_learn_l2_trace()
static u8* format_gbp_learn_l2_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_learn_l3_trace()
static u8* format_gbp_learn_l3_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ gbp_learn_disable()
◆ gbp_learn_enable()
◆ gbp_learn_get_outer()
◆ gbp_learn_init()
◆ gbp_learn_ip4()
◆ gbp_learn_ip4_dp()
◆ gbp_learn_ip6()
◆ gbp_learn_ip6_dp()
◆ gbp_learn_l2()
◆ gbp_learn_l2_cp()
◆ gbp_learn_l2_dp()
◆ gbp_learn_l2_ip4_dp()
◆ gbp_learn_l2_ip6_dp()
◆ gbp_learn_l3()
◆ gbp_learn_l3_cp()
◆ VLIB_NODE_FUNCTION_MULTIARCH() [1/3]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [2/3]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [3/3]
◆ VNET_FEATURE_INIT() [1/2]
◆ VNET_FEATURE_INIT() [2/2]
◆ gbp_learn_error_strings
char* gbp_learn_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_gbp_learn
Definition at line 69 of file gbp_learn.c.
◆ gbp_learn_ip4_node
Initial value:= {
.name = "gbp-learn-ip4",
.vector_size =
sizeof (
u32),
}
static uword gbp_learn_ip4(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_gbp_learn_l3_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (gbp_learn_ip4_node)
Definition at line 671 of file gbp_learn.c.
◆ gbp_learn_ip6_node
Initial value:= {
.name = "gbp-learn-ip6",
.vector_size =
sizeof (
u32),
}
static uword gbp_learn_ip6(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_gbp_learn_l3_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (gbp_learn_ip6_node)
Definition at line 687 of file gbp_learn.c.
◆ gbp_learn_l2_node
Initial value:= {
.name = "gbp-learn-l2",
.vector_size =
sizeof (
u32),
.next_nodes = {
[GBP_LEARN_NEXT_DROP] = "error-drop",
},
}
static u8 * format_gbp_learn_l2_trace(u8 *s, va_list *args)
static uword gbp_learn_l2(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * gbp_learn_error_strings[]
(constructor) VLIB_REGISTER_NODE (gbp_learn_l2_node)
Definition at line 381 of file gbp_learn.c.
◆ gbp_learn_main