Go to the source code of this file.
|
index_t | gbp_rule_alloc (gbp_rule_action_t action, gbp_hash_mode_t hash_mode, index_t *nhs) |
|
index_t | gbp_next_hop_alloc (const ip46_address_t *ip, index_t grd, const mac_address_t *mac, index_t gbd) |
|
static gbp_next_hop_t * | gbp_next_hop_get (index_t gui) |
|
static void | gbp_contract_rules_free (index_t *rules) |
|
static u8 * | format_gbp_next_hop (u8 *s, va_list *args) |
|
static u8 * | format_gbp_rule_action (u8 *s, va_list *args) |
|
static u8 * | format_gbp_hash_mode (u8 *s, va_list *args) |
|
static u8 * | format_gbp_policy_node (u8 *s, va_list *args) |
|
static u8 * | format_gbp_rule (u8 *s, va_list *args) |
|
static void | gbp_contract_mk_adj (gbp_next_hop_t *gnh, fib_protocol_t fproto) |
|
static flow_hash_config_t | gbp_contract_mk_lb_hp (gbp_hash_mode_t gu_hash_mode) |
|
static void | gbp_contract_mk_lb (index_t gui, fib_protocol_t fproto) |
|
static void | gbp_contract_mk_one_lb (index_t gui) |
|
static int | gbp_contract_next_hop_resolve (index_t gui, index_t gnhi) |
|
static void | gbp_contract_rule_resolve (index_t gui) |
|
static void | gbp_contract_resolve (index_t *guis) |
|
static void | gbp_contract_mk_lbs (index_t *guis) |
|
int | gbp_contract_update (sclass_t sclass, sclass_t dclass, u32 acl_index, index_t *rules, u16 *allowed_ethertypes, u32 *stats_index) |
|
int | gbp_contract_delete (sclass_t sclass, sclass_t dclass) |
|
void | gbp_contract_walk (gbp_contract_cb_t cb, void *ctx) |
|
static clib_error_t * | gbp_contract_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static u8 * | format_gbp_contract_key (u8 *s, va_list *args) |
|
u8 * | format_gbp_contract (u8 *s, va_list *args) |
|
static clib_error_t * | gbp_contract_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static fib_node_t * | gbp_next_hop_get_node (fib_node_index_t index) |
|
static void | gbp_next_hop_last_lock_gone (fib_node_t *node) |
|
static gbp_next_hop_t * | gbp_next_hop_from_fib_node (fib_node_t *node) |
|
static fib_node_back_walk_rc_t | gbp_next_hop_back_walk_notify (fib_node_t *node, fib_node_back_walk_ctx_t *ctx) |
|
static clib_error_t * | gbp_contract_init (vlib_main_t *vm) |
|
◆ GBP_CONTRACT_DBG
◆ format_gbp_contract()
u8* format_gbp_contract |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_gbp_contract_key()
static u8* format_gbp_contract_key |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_hash_mode()
static u8* format_gbp_hash_mode |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_next_hop()
static u8* format_gbp_next_hop |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_policy_node()
static u8* format_gbp_policy_node |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_rule()
static u8* format_gbp_rule |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_gbp_rule_action()
static u8* format_gbp_rule_action |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ gbp_contract_cli()
◆ gbp_contract_delete()
◆ gbp_contract_init()
◆ gbp_contract_mk_adj()
◆ gbp_contract_mk_lb()
◆ gbp_contract_mk_lb_hp()
◆ gbp_contract_mk_lbs()
static void gbp_contract_mk_lbs |
( |
index_t * |
guis | ) |
|
|
static |
◆ gbp_contract_mk_one_lb()
static void gbp_contract_mk_one_lb |
( |
index_t |
gui | ) |
|
|
static |
◆ gbp_contract_next_hop_resolve()
static int gbp_contract_next_hop_resolve |
( |
index_t |
gui, |
|
|
index_t |
gnhi |
|
) |
| |
|
static |
◆ gbp_contract_resolve()
static void gbp_contract_resolve |
( |
index_t * |
guis | ) |
|
|
static |
◆ gbp_contract_rule_resolve()
static void gbp_contract_rule_resolve |
( |
index_t |
gui | ) |
|
|
static |
◆ gbp_contract_rules_free()
static void gbp_contract_rules_free |
( |
index_t * |
rules | ) |
|
|
static |
◆ gbp_contract_show()
◆ gbp_contract_update()
◆ gbp_contract_walk()
◆ gbp_next_hop_alloc()
◆ gbp_next_hop_back_walk_notify()
◆ gbp_next_hop_from_fib_node()
◆ gbp_next_hop_get()
◆ gbp_next_hop_get_node()
◆ gbp_next_hop_last_lock_gone()
static void gbp_next_hop_last_lock_gone |
( |
fib_node_t * |
node | ) |
|
|
static |
◆ gbp_rule_alloc()
◆ gbp_contract_cli_node
Initial value:=
{
.path = "gbp contract",
.short_help =
"gbp contract [del] src-epg <ID> dst-epg <ID> acl-index <ACL>",
}
static clib_error_t * gbp_contract_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (gbp_contract_cli_node)
Definition at line 607 of file gbp_contract.c.
◆ gbp_contract_db
Single contract DB instance.
DP functions and databases.
Definition at line 29 of file gbp_contract.c.
◆ gbp_contract_drop_counters
Initial value:= {
.name = "gbp-contracts-drop",
.stat_segment_name = "/net/gbp/contract/drop",
}
Definition at line 49 of file gbp_contract.c.
◆ gbp_contract_permit_counters
Initial value:= {
.name = "gbp-contracts-permit",
.stat_segment_name = "/net/gbp/contract/permit",
}
Definition at line 44 of file gbp_contract.c.
◆ gbp_contract_pool
◆ gbp_contract_show_node
Initial value:= {
.path = "show gbp contract",
.short_help = "show gbp contract [src <SRC>] [dst <DST>]\n",
}
static clib_error_t * gbp_contract_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (gbp_contract_show_node)
Definition at line 722 of file gbp_contract.c.
◆ gbp_next_hop_fib_type
◆ gbp_next_hop_pool
◆ gbp_next_hop_vft
Initial value:= {
}
static fib_node_t * gbp_next_hop_get_node(fib_node_index_t index)
static void gbp_next_hop_last_lock_gone(fib_node_t *node)
static fib_node_back_walk_rc_t gbp_next_hop_back_walk_notify(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
Definition at line 768 of file gbp_contract.c.
◆ gbp_rule_pool
◆ gc_logger