FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
sr_api.c File Reference
+ Include dependency graph for sr_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_sr_localsid_add_del_t_handler (vl_api_sr_localsid_add_del_t *mp)
 
static void vl_api_sr_policy_add_t_handler (vl_api_sr_policy_add_t *mp)
 
static void vl_api_sr_policy_mod_t_handler (vl_api_sr_policy_mod_t *mp)
 
static void vl_api_sr_policy_del_t_handler (vl_api_sr_policy_del_t *mp)
 
static void vl_api_sr_set_encap_source_t_handler (vl_api_sr_set_encap_source_t *mp)
 
static void vl_api_sr_set_encap_hop_limit_t_handler (vl_api_sr_set_encap_hop_limit_t *mp)
 
static void vl_api_sr_steering_add_del_t_handler (vl_api_sr_steering_add_del_t *mp)
 
static void send_sr_localsid_details (ip6_sr_localsid_t *t, vl_api_registration_t *reg, u32 context)
 
static void vl_api_sr_localsids_dump_t_handler (vl_api_sr_localsids_dump_t *mp)
 
static void send_sr_policies_details (ip6_sr_policy_t *t, vl_api_registration_t *reg, u32 context)
 
static void vl_api_sr_policies_dump_t_handler (vl_api_sr_policies_dump_t *mp)
 
static void send_sr_policies_details_with_sl_index (ip6_sr_policy_t *t, vl_api_registration_t *reg, u32 context)
 
static void vl_api_sr_policies_with_sl_index_dump_t_handler (vl_api_sr_policies_with_sl_index_dump_t *mp)
 
static void send_sr_steering_pol_details (ip6_sr_steering_policy_t *t, vl_api_registration_t *reg, u32 context)
 
static void vl_api_sr_steering_pol_dump_t_handler (vl_api_sr_policies_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tsr_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (sr_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \
_(SR_POLICY_ADD, sr_policy_add) \
_(SR_POLICY_MOD, sr_policy_mod) \
_(SR_POLICY_DEL, sr_policy_del) \
_(SR_STEERING_ADD_DEL, sr_steering_add_del) \
_(SR_SET_ENCAP_SOURCE, sr_set_encap_source) \
_(SR_SET_ENCAP_HOP_LIMIT, sr_set_encap_hop_limit) \
_(SR_LOCALSIDS_DUMP, sr_localsids_dump) \
_(SR_POLICIES_DUMP, sr_policies_dump) \
_(SR_POLICIES_WITH_SL_INDEX_DUMP, sr_policies_with_sl_index_dump) \
_(SR_STEERING_POL_DUMP, sr_steering_pol_dump)

Definition at line 49 of file sr_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 37 of file sr_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 470 of file sr_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 42 of file sr_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 43 of file sr_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 33 of file sr_api.c.

Function Documentation

◆ send_sr_localsid_details()

static void send_sr_localsid_details ( ip6_sr_localsid_t t,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 236 of file sr_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send_sr_policies_details()

static void send_sr_policies_details ( ip6_sr_policy_t t,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 284 of file sr_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send_sr_policies_details_with_sl_index()

static void send_sr_policies_details_with_sl_index ( ip6_sr_policy_t t,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 351 of file sr_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send_sr_steering_pol_details()

static void send_sr_steering_pol_details ( ip6_sr_steering_policy_t t,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 417 of file sr_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 475 of file sr_api.c.

+ Here is the caller graph for this function:

◆ sr_api_hookup()

static clib_error_t* sr_api_hookup ( vlib_main_t vm)
static

Definition at line 483 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_localsid_add_del_t_handler()

static void vl_api_sr_localsid_add_del_t_handler ( vl_api_sr_localsid_add_del_t mp)
static

Definition at line 63 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_localsids_dump_t_handler()

static void vl_api_sr_localsids_dump_t_handler ( vl_api_sr_localsids_dump_t mp)
static

Definition at line 265 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_policies_dump_t_handler()

static void vl_api_sr_policies_dump_t_handler ( vl_api_sr_policies_dump_t mp)
static

Definition at line 330 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_policies_with_sl_index_dump_t_handler()

static void vl_api_sr_policies_with_sl_index_dump_t_handler ( vl_api_sr_policies_with_sl_index_dump_t mp)
static

Definition at line 398 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_policy_add_t_handler()

static void vl_api_sr_policy_add_t_handler ( vl_api_sr_policy_add_t mp)
static

Definition at line 95 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_policy_del_t_handler()

static void vl_api_sr_policy_del_t_handler ( vl_api_sr_policy_del_t mp)
static

Definition at line 161 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_policy_mod_t_handler()

static void vl_api_sr_policy_mod_t_handler ( vl_api_sr_policy_mod_t mp)
static

Definition at line 127 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_set_encap_hop_limit_t_handler()

static void vl_api_sr_set_encap_hop_limit_t_handler ( vl_api_sr_set_encap_hop_limit_t mp)
static

Definition at line 190 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_set_encap_source_t_handler()

static void vl_api_sr_set_encap_source_t_handler ( vl_api_sr_set_encap_source_t mp)
static

Definition at line 177 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_steering_add_del_t_handler()

static void vl_api_sr_steering_add_del_t_handler ( vl_api_sr_steering_add_del_t mp)
static

Definition at line 204 of file sr_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_steering_pol_dump_t_handler()

static void vl_api_sr_steering_pol_dump_t_handler ( vl_api_sr_policies_dump_t mp)
static

Definition at line 445 of file sr_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( sr_api_hookup  )
sr_policy_mod
int sr_policy_mod(ip6_address_t *bsid, u32 index, u32 fib_table, u8 operation, ip6_address_t *segments, u32 sl_index, u32 weight)
Modify an existing SR policy.
Definition: sr_policy_rewrite.c:831
sr_policy_del
int sr_policy_del(ip6_address_t *bsid, u32 index)
Delete a SR policy.
Definition: sr_policy_rewrite.c:723
sr_policy_add
int sr_policy_add(ip6_address_t *bsid, ip6_address_t *segments, u32 weight, u8 behavior, u32 fib_table, u8 is_encap, u16 plugin, void *plugin_mem)
Create a new SR policy.
Definition: sr_policy_rewrite.c:635