FD.io VPP  v21.06-3-gbb25fbf28
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_pcap_lookup_table_t_handler (vl_api_classify_pcap_lookup_table_t *mp)
 
static void vl_api_classify_pcap_set_table_t_handler (vl_api_classify_pcap_set_table_t *mp)
 
static void vl_api_classify_pcap_get_tables_t_handler (vl_api_classify_pcap_get_tables_t *mp)
 
static void vl_api_classify_trace_lookup_table_t_handler (vl_api_classify_trace_lookup_table_t *mp)
 
static void vl_api_classify_trace_set_table_t_handler (vl_api_classify_trace_set_table_t *mp)
 
static void vl_api_classify_trace_get_tables_t_handler (vl_api_classify_trace_get_tables_t *mp)
 
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, vl_api_registration_t *reg, 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 (vl_api_registration_t *reg, 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, vl_api_registration_t *reg, 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 vl_api_output_acl_set_interface_t_handler (vl_api_output_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

◆ foreach_classify_add_del_table_field

#define foreach_classify_add_del_table_field
Value:
_(table_index) \
_(nbuckets) \
_(skip_n_vectors) \
_(match_n_vectors) \
_(next_table_index) \
_(miss_next_index) \
_(mask_len)

Definition at line 75 of file classify_api.c.

◆ foreach_vpe_api_msg

#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) \
_(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \
_(CLASSIFY_PCAP_LOOKUP_TABLE, classify_pcap_lookup_table) \
_(CLASSIFY_PCAP_SET_TABLE, classify_pcap_set_table) \
_(CLASSIFY_PCAP_GET_TABLES, classify_pcap_get_tables) \
_(CLASSIFY_TRACE_LOOKUP_TABLE, classify_trace_lookup_table) \
_(CLASSIFY_TRACE_SET_TABLE, classify_trace_set_table) \
_(CLASSIFY_TRACE_GET_TABLES, classify_trace_get_tables) \

Definition at line 52 of file classify_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 40 of file classify_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 953 of file classify_api.c.

◆ vl_print

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

Definition at line 45 of file classify_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 46 of file classify_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 36 of file classify_api.c.

Function Documentation

◆ classify_api_hookup()

static clib_error_t* classify_api_hookup ( vlib_main_t vm)
static

Definition at line 966 of file classify_api.c.

+ Here is the call graph for this function:

◆ send_classify_session_details()

static void send_classify_session_details ( vl_api_registration_t reg,
u32  table_id,
u32  match_length,
vnet_classify_entry_t e,
u32  context 
)
static

Definition at line 688 of file classify_api.c.

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

◆ send_flow_classify_details()

static void send_flow_classify_details ( u32  sw_if_index,
u32  table_index,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 783 of file classify_api.c.

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

◆ send_policer_classify_details()

static void send_policer_classify_details ( u32  sw_if_index,
u32  table_index,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 497 of file classify_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 958 of file classify_api.c.

+ Here is the caller graph for this function:

◆ vl_api_classify_add_del_session_t_handler()

static void vl_api_classify_add_del_session_t_handler ( vl_api_classify_add_del_session_t mp)
static

Definition at line 431 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_add_del_table_t_handler()

static void vl_api_classify_add_del_table_t_handler ( vl_api_classify_add_del_table_t mp)
static

Definition at line 364 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_pcap_get_tables_t_handler()

static void vl_api_classify_pcap_get_tables_t_handler ( vl_api_classify_pcap_get_tables_t mp)
static

Definition at line 177 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_pcap_lookup_table_t_handler()

static void vl_api_classify_pcap_lookup_table_t_handler ( vl_api_classify_pcap_lookup_table_t mp)
static

Definition at line 87 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_pcap_set_table_t_handler()

static void vl_api_classify_pcap_set_table_t_handler ( vl_api_classify_pcap_set_table_t mp)
static

Definition at line 136 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_session_dump_t_handler()

static void vl_api_classify_session_dump_t_handler ( vl_api_classify_session_dump_t mp)
static

Definition at line 710 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_set_interface_ip_table_t_handler()

static void vl_api_classify_set_interface_ip_table_t_handler ( vl_api_classify_set_interface_ip_table_t mp)
static

Definition at line 837 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_set_interface_l2_tables_t_handler()

static void vl_api_classify_set_interface_l2_tables_t_handler ( vl_api_classify_set_interface_l2_tables_t mp)
static

Definition at line 859 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_table_by_interface_t_handler()

static void vl_api_classify_table_by_interface_t_handler ( vl_api_classify_table_by_interface_t mp)
static

Definition at line 587 of file classify_api.c.

◆ vl_api_classify_table_ids_t_handler()

static void vl_api_classify_table_ids_t_handler ( vl_api_classify_table_ids_t mp)
static

Definition at line 551 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_table_info_t_handler()

static void vl_api_classify_table_info_t_handler ( vl_api_classify_table_info_t mp)
static

Definition at line 638 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_trace_get_tables_t_handler()

static void vl_api_classify_trace_get_tables_t_handler ( vl_api_classify_trace_get_tables_t mp)
static

Definition at line 315 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_trace_lookup_table_t_handler()

static void vl_api_classify_trace_lookup_table_t_handler ( vl_api_classify_trace_lookup_table_t mp)
static

Definition at line 234 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_classify_trace_set_table_t_handler()

static void vl_api_classify_trace_set_table_t_handler ( vl_api_classify_trace_set_table_t mp)
static

Definition at line 278 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_flow_classify_dump_t_handler()

static void vl_api_flow_classify_dump_t_handler ( vl_api_flow_classify_dump_t mp)
static

Definition at line 800 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_flow_classify_set_interface_t_handler()

static void vl_api_flow_classify_set_interface_t_handler ( vl_api_flow_classify_set_interface_t mp)
static

Definition at line 761 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_input_acl_set_interface_t_handler()

static void vl_api_input_acl_set_interface_t_handler ( vl_api_input_acl_set_interface_t mp)
static

Definition at line 902 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_output_acl_set_interface_t_handler()

static void vl_api_output_acl_set_interface_t_handler ( vl_api_output_acl_set_interface_t mp)
static

Definition at line 924 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_policer_classify_dump_t_handler()

static void vl_api_policer_classify_dump_t_handler ( vl_api_policer_classify_dump_t mp)
static

Definition at line 514 of file classify_api.c.

+ Here is the call graph for this function:

◆ vl_api_policer_classify_set_interface_t_handler()

static void vl_api_policer_classify_set_interface_t_handler ( vl_api_policer_classify_set_interface_t mp)
static

Definition at line 473 of file classify_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( classify_api_hookup  )
memory_size
u64 memory_size
Definition: vhost_user.h:124