FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
qos_api.c File Reference
+ Include dependency graph for qos_api.c:

Go to the source code of this file.

Data Structures

struct  qos_record_send_walk_ctx_t_
 
struct  qos_store_send_walk_ctx_t_
 
struct  qos_egress_map_send_walk_ctx_t_
 
struct  qos_mark_send_walk_ctx_t_
 

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_qos_api_msg
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct qos_record_send_walk_ctx_t_ qos_record_send_walk_ctx_t
 
typedef struct qos_store_send_walk_ctx_t_ qos_store_send_walk_ctx_t
 
typedef struct qos_egress_map_send_walk_ctx_t_ qos_egress_map_send_walk_ctx_t
 
typedef struct qos_mark_send_walk_ctx_t_ qos_mark_send_walk_ctx_t
 

Functions

static int qos_source_decode (vl_api_qos_source_t v, qos_source_t *q)
 
static vl_api_qos_source_t qos_source_encode (qos_source_t q)
 
void vl_api_qos_record_enable_disable_t_handler (vl_api_qos_record_enable_disable_t *mp)
 
static walk_rc_t send_qos_record_details (u32 sw_if_index, qos_source_t input_source, void *c)
 
static void vl_api_qos_record_dump_t_handler (vl_api_qos_record_dump_t *mp)
 
void vl_api_qos_store_enable_disable_t_handler (vl_api_qos_store_enable_disable_t *mp)
 
static walk_rc_t send_qos_store_details (u32 sw_if_index, qos_source_t input_source, qos_bits_t value, void *c)
 
static void vl_api_qos_store_dump_t_handler (vl_api_qos_store_dump_t *mp)
 
void vl_api_qos_egress_map_update_t_handler (vl_api_qos_egress_map_update_t *mp)
 
void vl_api_qos_egress_map_delete_t_handler (vl_api_qos_egress_map_delete_t *mp)
 
static walk_rc_t send_qos_egress_map_details (qos_egress_map_id_t id, const qos_egress_map_t *m, void *c)
 
static void vl_api_qos_egress_map_dump_t_handler (vl_api_qos_egress_map_dump_t *mp)
 
void vl_api_qos_mark_enable_disable_t_handler (vl_api_qos_mark_enable_disable_t *mp)
 
static walk_rc_t send_qos_mark_details (u32 sw_if_index, u32 map_id, qos_source_t output_source, void *c)
 
static void vl_api_qos_mark_dump_t_handler (vl_api_qos_mark_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tqos_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (qos_api_hookup)
 

Macro Definition Documentation

◆ foreach_qos_api_msg

#define foreach_qos_api_msg
Value:
_(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \
_(QOS_RECORD_DUMP, qos_record_dump) \
_(QOS_STORE_ENABLE_DISABLE, qos_store_enable_disable) \
_(QOS_STORE_DUMP, qos_store_dump) \
_(QOS_EGRESS_MAP_DELETE, qos_egress_map_delete) \
_(QOS_EGRESS_MAP_UPDATE, qos_egress_map_update) \
_(QOS_EGRESS_MAP_DUMP, qos_egress_map_dump) \
_(QOS_MARK_ENABLE_DISABLE, qos_mark_enable_disable) \
_(QOS_MARK_DUMP, qos_mark_dump)
void qos_egress_map_delete(qos_egress_map_id_t mid)
void qos_egress_map_update(qos_egress_map_id_t mid, qos_source_t input_source, qos_bits_t *values)
Add a qos-egress map to an interface.

Definition at line 46 of file qos_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 33 of file qos_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 355 of file qos_api.c.

◆ vl_print

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

Definition at line 38 of file qos_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 39 of file qos_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 29 of file qos_api.c.

Typedef Documentation

◆ qos_egress_map_send_walk_ctx_t

◆ qos_mark_send_walk_ctx_t

◆ qos_record_send_walk_ctx_t

◆ qos_store_send_walk_ctx_t

Function Documentation

◆ qos_api_hookup()

static clib_error_t* qos_api_hookup ( vlib_main_t vm)
static

Definition at line 368 of file qos_api.c.

+ Here is the call graph for this function:

◆ qos_source_decode()

static int qos_source_decode ( vl_api_qos_source_t  v,
qos_source_t q 
)
static

Definition at line 58 of file qos_api.c.

+ Here is the caller graph for this function:

◆ qos_source_encode()

static vl_api_qos_source_t qos_source_encode ( qos_source_t  q)
static

Definition at line 80 of file qos_api.c.

+ Here is the caller graph for this function:

◆ send_qos_egress_map_details()

static walk_rc_t send_qos_egress_map_details ( qos_egress_map_id_t  id,
const qos_egress_map_t m,
void *  c 
)
static

Definition at line 252 of file qos_api.c.

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

◆ send_qos_mark_details()

static walk_rc_t send_qos_mark_details ( u32  sw_if_index,
u32  map_id,
qos_source_t  output_source,
void *  c 
)
static

Definition at line 319 of file qos_api.c.

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

◆ send_qos_record_details()

static walk_rc_t send_qos_record_details ( u32  sw_if_index,
qos_source_t  input_source,
void *  c 
)
static

Definition at line 116 of file qos_api.c.

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

◆ send_qos_store_details()

static walk_rc_t send_qos_store_details ( u32  sw_if_index,
qos_source_t  input_source,
qos_bits_t  value,
void *  c 
)
static

Definition at line 182 of file qos_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 360 of file qos_api.c.

+ Here is the caller graph for this function:

◆ vl_api_qos_egress_map_delete_t_handler()

void vl_api_qos_egress_map_delete_t_handler ( vl_api_qos_egress_map_delete_t mp)

Definition at line 235 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_egress_map_dump_t_handler()

static void vl_api_qos_egress_map_dump_t_handler ( vl_api_qos_egress_map_dump_t mp)
static

Definition at line 275 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_egress_map_update_t_handler()

void vl_api_qos_egress_map_update_t_handler ( vl_api_qos_egress_map_update_t mp)

Definition at line 219 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_mark_dump_t_handler()

static void vl_api_qos_mark_dump_t_handler ( vl_api_qos_mark_dump_t mp)
static

Definition at line 340 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_mark_enable_disable_t_handler()

void vl_api_qos_mark_enable_disable_t_handler ( vl_api_qos_mark_enable_disable_t mp)

Definition at line 291 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_record_dump_t_handler()

static void vl_api_qos_record_dump_t_handler ( vl_api_qos_record_dump_t mp)
static

Definition at line 135 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_record_enable_disable_t_handler()

void vl_api_qos_record_enable_disable_t_handler ( vl_api_qos_record_enable_disable_t mp)

Definition at line 86 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_store_dump_t_handler()

static void vl_api_qos_store_dump_t_handler ( vl_api_qos_store_dump_t mp)
static

Definition at line 203 of file qos_api.c.

+ Here is the call graph for this function:

◆ vl_api_qos_store_enable_disable_t_handler()

void vl_api_qos_store_enable_disable_t_handler ( vl_api_qos_store_enable_disable_t mp)

Definition at line 151 of file qos_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( qos_api_hookup  )
+ Here is the caller graph for this function: