Go to the source code of this file.
|
abf_policy_t * | abf_policy_get (u32 index) |
| Get an ABF object from its VPP index. More...
|
|
static u32 | abf_policy_get_index (const abf_policy_t *abf) |
|
static abf_policy_t * | abf_policy_find_i (u32 policy_id) |
|
u32 | abf_policy_find (u32 policy_id) |
| Find a ABF object from the client's policy ID. More...
|
|
void | abf_policy_update (u32 policy_id, u32 acl_index, const fib_route_path_t *rpaths) |
| Create or update an ABF Policy. More...
|
|
static void | abf_policy_destroy (abf_policy_t *ap) |
|
int | abf_policy_delete (u32 policy_id, const fib_route_path_t *rpaths) |
| Delete paths from an ABF Policy. More...
|
|
static clib_error_t * | abf_policy_cmd (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd) |
|
static u8 * | format_abf (u8 *s, va_list *args) |
|
void | abf_policy_walk (abf_policy_walk_cb_t cb, void *ctx) |
| Walk/visit each of the ABF policies. More...
|
|
static clib_error_t * | abf_show_policy_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static fib_node_t * | abf_policy_get_node (fib_node_index_t index) |
|
static abf_policy_t * | abf_policy_get_from_node (fib_node_t *node) |
|
static void | abf_policy_last_lock_gone (fib_node_t *node) |
|
static fib_node_back_walk_rc_t | abf_policy_back_walk_notify (fib_node_t *node, fib_node_back_walk_ctx_t *ctx) |
|
static clib_error_t * | abf_policy_init (vlib_main_t *vm) |
|
Delete paths from an ABF Policy.
If no more paths exist, the policy is deleted.
- Parameters
-
policy_id | User defined Policy ID |
rpaths | The set of paths to forward remove |
Definition at line 175 of file abf_policy.c.
u32 abf_policy_find |
( |
u32 |
policy_id | ) |
|
Find a ABF object from the client's policy ID.
- Parameters
-
policy_id | Client's defined policy ID |
- Returns
- VPP's object index
Definition at line 66 of file abf_policy.c.
Get an ABF object from its VPP index.
Definition at line 41 of file abf_policy.c.
static void abf_policy_last_lock_gone |
( |
fib_node_t * |
node | ) |
|
|
static |
Create or update an ABF Policy.
- Parameters
-
policy_id | User defined Policy ID |
acl_index | The ACL the policy with match on |
rpaths | The set of paths to add to the forwarding set |
Definition at line 80 of file abf_policy.c.
Walk/visit each of the ABF policies.
Definition at line 328 of file abf_policy.c.
static u8* format_abf |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
Initial value:= {
.path = "abf policy",
.short_help = "abf policy [add|del] id <index> acl <index> via ...",
.is_mp_safe = 1,
}
static clib_error_t * abf_policy_cmd(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
Create an ABF policy.
(constructor) VLIB_CLI_COMMAND (abf_policy_cmd_node)
Definition at line 299 of file abf_policy.c.
DB of ABF policy objects.
- policy ID to index conversion.
Definition at line 37 of file abf_policy.c.
FIB node type the attachment is registered.
The FIB node type for ABF policies.
Definition at line 26 of file abf_policy.c.
Initial value:= {
.path = "show abf policy",
.short_help = "show abf policy <value>",
.is_mp_safe = 1,
}
static clib_error_t * abf_show_policy_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (abf_policy_show_policy_cmd_node)
Definition at line 382 of file abf_policy.c.
Initial value:= {
}
static fib_node_back_walk_rc_t abf_policy_back_walk_notify(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
static fib_node_t * abf_policy_get_node(fib_node_index_t index)
static void abf_policy_last_lock_gone(fib_node_t *node)
Definition at line 434 of file abf_policy.c.