Go to the source code of this file.
|
static void | gbp_endpoint_mk_key_mac_itf (const mac_address_t *mac, u32 sw_if_index, clib_bihash_kv_16_8_t *key) |
|
static void | gbp_endpoint_extract_key_mac_itf (const clib_bihash_kv_16_8_t *key, mac_address_t *mac, u32 *sw_if_index) |
|
gbp_endpoint_t * | gbp_endpoint_find_mac_itf (const mac_address_t *mac, u32 sw_if_index) |
|
static void | gbp_endpoint_mk_key_ip_itf (const ip46_address_t *ip, u32 sw_if_index, clib_bihash_kv_24_8_t *key) |
|
static void | gbp_endpoint_extract_key_ip_itf (const clib_bihash_kv_24_8_t *key, ip46_address_t *ip, u32 *sw_if_index) |
|
gbp_endpoint_t * | gbp_endpoint_find_ip_itf (const ip46_address_t *ip, u32 sw_if_index) |
|
gbp_endpoint_t * | gbp_endpoint_find_itf (u32 sw_if_index) |
|
static bool | gbp_endpoint_add_mac_itf (const mac_address_t *mac, u32 sw_if_index, index_t gbpei) |
|
static bool | gbp_endpoint_add_ip_itf (const ip46_address_t *ip, u32 sw_if_index, index_t gbpei) |
|
static void | gbp_endpoint_add_itf (u32 sw_if_index, index_t gbpei) |
|
static void | gbp_endpoint_del_mac_itf (const mac_address_t *mac, u32 sw_if_index) |
|
static void | gbp_endpoint_del_ip_itf (const ip46_address_t *ip, u32 sw_if_index) |
|
static void | gbp_endpoint_del_itf (u32 sw_if_index) |
|
static index_t | gbp_endpoint_index (const gbp_endpoint_t *gbpe) |
|
int | gbp_endpoint_update (u32 sw_if_index, const ip46_address_t *ips, const mac_address_t *mac, epg_id_t epg_id, u32 *handle) |
|
void | gbp_endpoint_delete (u32 handle) |
|
void | gbp_endpoint_walk (gbp_endpoint_cb_t cb, void *ctx) |
|
static clib_error_t * | gbp_endpoint_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
u8 * | format_gbp_endpoint (u8 *s, va_list *args) |
|
static walk_rc_t | gbp_endpoint_show_one (gbp_endpoint_t *gbpe, void *ctx) |
|
static void | gbp_endpoint_walk_ip_itf (const clib_bihash_kv_24_8_t *kvp, void *arg) |
|
static void | gbp_endpoint_walk_mac_itf (const clib_bihash_kv_16_8_t *kvp, void *arg) |
|
static clib_error_t * | gbp_endpoint_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | gbp_endpoint_init (vlib_main_t *vm) |
|
#define GBP_EP_HASH_MEMORY_SIZE (1 << 20) |
#define GBP_EP_HASH_NUM_BUCKETS (2 * 1024) |
u8* format_gbp_endpoint |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static bool gbp_endpoint_add_ip_itf |
( |
const ip46_address_t * |
ip, |
|
|
u32 |
sw_if_index, |
|
|
index_t |
gbpei |
|
) |
| |
|
static |
static void gbp_endpoint_add_itf |
( |
u32 |
sw_if_index, |
|
|
index_t |
gbpei |
|
) |
| |
|
static |
static void gbp_endpoint_del_ip_itf |
( |
const ip46_address_t * |
ip, |
|
|
u32 |
sw_if_index |
|
) |
| |
|
static |
static void gbp_endpoint_del_itf |
( |
u32 |
sw_if_index | ) |
|
|
static |
static void gbp_endpoint_del_mac_itf |
( |
const mac_address_t * |
mac, |
|
|
u32 |
sw_if_index |
|
) |
| |
|
static |
void gbp_endpoint_delete |
( |
u32 |
handle | ) |
|
static void gbp_endpoint_extract_key_ip_itf |
( |
const clib_bihash_kv_24_8_t * |
key, |
|
|
ip46_address_t * |
ip, |
|
|
u32 * |
sw_if_index |
|
) |
| |
|
static |
gbp_endpoint_t* gbp_endpoint_find_ip_itf |
( |
const ip46_address_t * |
ip, |
|
|
u32 |
sw_if_index |
|
) |
| |
Initial value:= {
.path = "gbp endpoint",
.short_help = "gbp endpoint [del] <interface> epg <ID> ip <IP> mac <MAC>",
}
static clib_error_t * gbp_endpoint_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (gbp_endpoint_cli_node)
Definition at line 450 of file gbp_endpoint.c.
Initial value:= {
.path = "show gbp endpoint",
.short_help = "show gbp endpoint\n",
}
static clib_error_t * gbp_endpoint_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (gbp_endpoint_show_node)
Definition at line 586 of file gbp_endpoint.c.