FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
classify_api.c File Reference
+ Include dependency graph for classify_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 foreach_classify_add_del_table_field
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_classify_add_del_table_t_handler (vl_api_classify_add_del_table_t *mp)
 
static void vl_api_classify_add_del_session_t_handler (vl_api_classify_add_del_session_t *mp)
 
static void vl_api_policer_classify_set_interface_t_handler (vl_api_policer_classify_set_interface_t *mp)
 
static void send_policer_classify_details (u32 sw_if_index, u32 table_index, unix_shared_memory_queue_t *q, u32 context)
 
static void vl_api_policer_classify_dump_t_handler (vl_api_policer_classify_dump_t *mp)
 
static void vl_api_classify_table_ids_t_handler (vl_api_classify_table_ids_t *mp)
 
static void vl_api_classify_table_by_interface_t_handler (vl_api_classify_table_by_interface_t *mp)
 
static void vl_api_classify_table_info_t_handler (vl_api_classify_table_info_t *mp)
 
static void send_classify_session_details (unix_shared_memory_queue_t *q, u32 table_id, u32 match_length, vnet_classify_entry_t *e, u32 context)
 
static void vl_api_classify_session_dump_t_handler (vl_api_classify_session_dump_t *mp)
 
static void vl_api_flow_classify_set_interface_t_handler (vl_api_flow_classify_set_interface_t *mp)
 
static void send_flow_classify_details (u32 sw_if_index, u32 table_index, unix_shared_memory_queue_t *q, u32 context)
 
static void vl_api_flow_classify_dump_t_handler (vl_api_flow_classify_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tclassify_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (classify_api_hookup)
 

Macro Definition Documentation

#define foreach_classify_add_del_table_field
Value:
_(table_index) \
_(nbuckets) \
_(skip_n_vectors) \
_(match_n_vectors) \
_(next_table_index) \
_(miss_next_index) \
_(current_data_flag) \
_(current_data_offset)
u64 memory_size
Definition: vhost-user.h:77

Definition at line 61 of file classify_api.c.

#define foreach_vpe_api_msg
Value:
_(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \
_(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \
_(CLASSIFY_TABLE_IDS,classify_table_ids) \
_(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \
_(CLASSIFY_TABLE_INFO,classify_table_info) \
_(CLASSIFY_SESSION_DUMP,classify_session_dump) \
_(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \
_(POLICER_CLASSIFY_DUMP, policer_classify_dump) \
_(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \
_(FLOW_CLASSIFY_DUMP, flow_classify_dump)

Definition at line 49 of file classify_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 37 of file classify_api.c.

#define vl_msg_name_crc_list

Definition at line 504 of file classify_api.c.

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

Definition at line 42 of file classify_api.c.

#define vl_printfun

Definition at line 43 of file classify_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 33 of file classify_api.c.

Function Documentation

static clib_error_t* classify_api_hookup ( vlib_main_t vm)
static

Definition at line 517 of file classify_api.c.

+ Here is the call graph for this function:

static void send_classify_session_details ( unix_shared_memory_queue_t q,
u32  table_id,
u32  match_length,
vnet_classify_entry_t *  e,
u32  context 
)
static

Definition at line 359 of file classify_api.c.

+ Here is the call graph for this function:

static void send_flow_classify_details ( u32  sw_if_index,
u32  table_index,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 454 of file classify_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_policer_classify_details ( u32  sw_if_index,
u32  table_index,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 180 of file classify_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 509 of file classify_api.c.

+ Here is the caller graph for this function:

static void vl_api_classify_add_del_session_t_handler ( vl_api_classify_add_del_session_t mp)
static

Definition at line 131 of file classify_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_classify_add_del_table_t_handler ( vl_api_classify_add_del_table_t mp)
static

Definition at line 73 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_classify_session_dump_t_handler ( vl_api_classify_session_dump_t mp)
static

Definition at line 381 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_classify_table_by_interface_t_handler ( vl_api_classify_table_by_interface_t mp)
static

Definition at line 260 of file classify_api.c.

+ Here is the caller graph for this function:

static void vl_api_classify_table_ids_t_handler ( vl_api_classify_table_ids_t mp)
static

Definition at line 224 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_classify_table_info_t_handler ( vl_api_classify_table_info_t mp)
static

Definition at line 309 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_flow_classify_dump_t_handler ( vl_api_flow_classify_dump_t mp)
static

Definition at line 471 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_flow_classify_set_interface_t_handler ( vl_api_flow_classify_set_interface_t mp)
static

Definition at line 432 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_policer_classify_dump_t_handler ( vl_api_policer_classify_dump_t mp)
static

Definition at line 197 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_policer_classify_set_interface_t_handler ( vl_api_policer_classify_set_interface_t mp)
static

Definition at line 156 of file classify_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_API_INIT_FUNCTION ( classify_api_hookup  )

+ Here is the caller graph for this function: