FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
sr_mpls_api.c File Reference
+ Include dependency graph for sr_mpls_api.c:

Go to the source code of this file.

Macros

#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_api_version(n, v)   static u32 api_version = v;
 
#define vl_endianfun
 
#define vl_printfun
 
#define vl_msg_name_crc_list
 
#define REPLY_MSG_ID_BASE   msg_id_base
 
#define foreach_vpe_api_msg
 

Functions

static void vl_api_sr_mpls_policy_add_t_handler (vl_api_sr_mpls_policy_add_t *mp)
 
static void vl_api_sr_mpls_policy_mod_t_handler (vl_api_sr_mpls_policy_mod_t *mp)
 
static void vl_api_sr_mpls_policy_del_t_handler (vl_api_sr_mpls_policy_del_t *mp)
 
static void vl_api_sr_mpls_steering_add_del_t_handler (vl_api_sr_mpls_steering_add_del_t *mp)
 
static void vl_api_sr_mpls_policy_assign_endpoint_color_t_handler (vl_api_sr_mpls_policy_assign_endpoint_color_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tsr_mpls_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (sr_mpls_api_hookup)
 

Variables

static u16 msg_id_base
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \
_(SR_MPLS_STEERING_ADD_DEL, sr_mpls_steering_add_del) \
_(SR_MPLS_POLICY_ASSIGN_ENDPOINT_COLOR, sr_mpls_policy_assign_endpoint_color)

Definition at line 53 of file sr_mpls_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   msg_id_base

Definition at line 50 of file sr_mpls_api.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version = v;

Definition at line 34 of file sr_mpls_api.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 38 of file sr_mpls_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 46 of file sr_mpls_api.c.

◆ vl_print

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

Definition at line 32 of file sr_mpls_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 42 of file sr_mpls_api.c.

Function Documentation

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 174 of file sr_mpls_api.c.

◆ sr_mpls_api_hookup()

static clib_error_t* sr_mpls_api_hookup ( vlib_main_t vm)
static

Definition at line 183 of file sr_mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_mpls_policy_add_t_handler()

static void vl_api_sr_mpls_policy_add_t_handler ( vl_api_sr_mpls_policy_add_t mp)
static

Definition at line 61 of file sr_mpls_api.c.

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

◆ vl_api_sr_mpls_policy_assign_endpoint_color_t_handler()

static void vl_api_sr_mpls_policy_assign_endpoint_color_t_handler ( vl_api_sr_mpls_policy_assign_endpoint_color_t mp)
static

Definition at line 155 of file sr_mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_mpls_policy_del_t_handler()

static void vl_api_sr_mpls_policy_del_t_handler ( vl_api_sr_mpls_policy_del_t mp)
static

Definition at line 110 of file sr_mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_sr_mpls_policy_mod_t_handler()

static void vl_api_sr_mpls_policy_mod_t_handler ( vl_api_sr_mpls_policy_mod_t mp)
static

Definition at line 85 of file sr_mpls_api.c.

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

◆ vl_api_sr_mpls_steering_add_del_t_handler()

static void vl_api_sr_mpls_steering_add_del_t_handler ( vl_api_sr_mpls_steering_add_del_t mp)
static

Definition at line 120 of file sr_mpls_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( sr_mpls_api_hookup  )

Variable Documentation

◆ msg_id_base

u16 msg_id_base
static

Definition at line 58 of file sr_mpls_api.c.

sr_mpls_policy_assign_endpoint_color
int sr_mpls_policy_assign_endpoint_color(mpls_label_t bsid, ip46_address_t *endpoint, u8 endpoint_type, u32 color)
Update the Endpoint,Color tuple of an SR policy.
Definition: sr_mpls_policy.c:671
sr_mpls_policy_del
int sr_mpls_policy_del(mpls_label_t bsid)
Delete a SR policy.
Definition: sr_mpls_policy.c:207