![]() |
FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
Packet steering into SR Policies. More...
Include dependency graph for sr_steering.c:Go to the source code of this file.
Functions | |
| int | sr_steering_policy (int is_del, ip6_address_t *bsid, u32 sr_policy_index, u32 table_id, ip46_address_t *prefix, u32 mask_width, u32 sw_if_index, u8 traffic_type) |
| Steer traffic L2 and L3 traffic through a given SR policy. More... | |
| static clib_error_t * | sr_steer_policy_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
| static clib_error_t * | show_sr_steering_policies_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
| clib_error_t * | sr_steering_init (vlib_main_t *vm) |
| VNET_FEATURE_INIT (sr_pl_rewrite_encaps_l2, static) | |
Variables | |
| static vlib_cli_command_t | sr_steer_policy_command |
| (constructor) VLIB_CLI_COMMAND (sr_steer_policy_command) More... | |
| static vlib_cli_command_t | show_sr_steering_policies_command |
| (constructor) VLIB_CLI_COMMAND (show_sr_steering_policies_command) More... | |
Packet steering into SR Policies.
This file is in charge of handling the FIB appropiatly to steer packets through SR Policies as defined in 'sr_policy_rewrite.c'. Notice that here we are only doing steering. SR policy application is done in sr_policy_rewrite.c
Supports:
Definition in file sr_steering.c.
|
static |
|
static |
| clib_error_t* sr_steering_init | ( | vlib_main_t * | vm | ) |
| int sr_steering_policy | ( | int | is_del, |
| ip6_address_t * | bsid, | ||
| u32 | sr_policy_index, | ||
| u32 | table_id, | ||
| ip46_address_t * | prefix, | ||
| u32 | mask_width, | ||
| u32 | sw_if_index, | ||
| u8 | traffic_type | ||
| ) |
Steer traffic L2 and L3 traffic through a given SR policy.
| is_del | |
| bsid | is the bindingSID of the SR Policy (alt to sr_policy_index) |
| sr_policy | is the index of the SR Policy (alt to bsid) |
| table_id | is the VRF where to install the FIB entry for the BSID |
| prefix | is the IPv4/v6 address for L3 traffic type |
| mask_width | is the mask for L3 traffic type |
| sw_if_index | is the incoming interface for L2 traffic |
| traffic_type | describes the type of traffic |
Definition at line 60 of file sr_steering.c.
Here is the call graph for this function:
Here is the caller graph for this function:| VNET_FEATURE_INIT | ( | sr_pl_rewrite_encaps_l2 | , |
| static | |||
| ) |
Here is the caller graph for this function:
|
static |
(constructor) VLIB_CLI_COMMAND (show_sr_steering_policies_command)
Definition at line 533 of file sr_steering.c.
|
static |
(constructor) VLIB_CLI_COMMAND (sr_steer_policy_command)
Definition at line 466 of file sr_steering.c.