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...
|
|
int | 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) |
|
◆ abf_policy_back_walk_notify()
◆ abf_policy_cmd()
◆ abf_policy_delete()
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 181 of file abf_policy.c.
◆ abf_policy_destroy()
◆ abf_policy_find()
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.
◆ abf_policy_find_i()
◆ abf_policy_get()
Get an ABF object from its VPP index.
Definition at line 41 of file abf_policy.c.
◆ abf_policy_get_from_node()
◆ abf_policy_get_index()
◆ abf_policy_get_node()
◆ abf_policy_init()
◆ abf_policy_last_lock_gone()
static void abf_policy_last_lock_gone |
( |
fib_node_t * |
node | ) |
|
|
static |
◆ abf_policy_update()
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 |
- Returns
- error code
Definition at line 80 of file abf_policy.c.
◆ abf_policy_walk()
Walk/visit each of the ABF policies.
Definition at line 344 of file abf_policy.c.
◆ abf_show_policy_cmd()
◆ format_abf()
static u8* format_abf |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ abf_policy_cmd_node
Initial value:= {
.path = "abf policy",
.short_help = "abf policy [add|del] id <index> acl <index> via ...",
.is_mp_safe = 1,
}
Create an ABF policy.
(constructor) VLIB_CLI_COMMAND (abf_policy_cmd_node)
Definition at line 315 of file abf_policy.c.
◆ abf_policy_db
DB of ABF policy objects.
- policy ID to index conversion.
Definition at line 37 of file abf_policy.c.
◆ abf_policy_fib_node_type
FIB node type the attachment is registered.
The FIB node type for ABF policies.
Definition at line 26 of file abf_policy.c.
◆ abf_policy_pool
◆ abf_policy_show_policy_cmd_node
Initial value:= {
.path = "show abf policy",
.short_help = "show abf policy <value>",
.is_mp_safe = 1,
}
(constructor) VLIB_CLI_COMMAND (abf_policy_show_policy_cmd_node)
Definition at line 398 of file abf_policy.c.
◆ abf_policy_vft