FD.io VPP  v18.01.2-1-g9b554f3
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 vl_api_classify_set_interface_ip_table_t_handler (vl_api_classify_set_interface_ip_table_t *mp)
 
static void vl_api_classify_set_interface_l2_tables_t_handler (vl_api_classify_set_interface_l2_tables_t *mp)
 
static void vl_api_input_acl_set_interface_t_handler (vl_api_input_acl_set_interface_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 65 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) \
_(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \
_(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \
_(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables)

Definition at line 50 of file classify_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 38 of file classify_api.c.

#define vl_msg_name_crc_list

Definition at line 595 of file classify_api.c.

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

Definition at line 43 of file classify_api.c.

#define vl_printfun

Definition at line 44 of file classify_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 34 of file classify_api.c.

Function Documentation

static clib_error_t* classify_api_hookup ( vlib_main_t vm)
static

Definition at line 608 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 363 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 458 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 184 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 600 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 135 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 77 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 385 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_classify_set_interface_ip_table_t_handler ( vl_api_classify_set_interface_ip_table_t mp)
static

Definition at line 502 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_set_interface_l2_tables_t_handler ( vl_api_classify_set_interface_l2_tables_t mp)
static

Definition at line 524 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_table_by_interface_t_handler ( vl_api_classify_table_by_interface_t mp)
static

Definition at line 264 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 228 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 313 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 475 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 436 of file classify_api.c.

+ Here is the call graph for this function:

static void vl_api_input_acl_set_interface_t_handler ( vl_api_input_acl_set_interface_t mp)
static

Definition at line 567 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_policer_classify_dump_t_handler ( vl_api_policer_classify_dump_t mp)
static

Definition at line 201 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 160 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: