4#ifndef __INCLUDE_RTE_SWX_PIPELINE_H__
5#define __INCLUDE_RTE_SWX_PIPELINE_H__
20#include <rte_compat.h>
27#ifndef RTE_SWX_NAME_SIZE
28#define RTE_SWX_NAME_SIZE 64
32#ifndef RTE_SWX_INSTRUCTION_SIZE
33#define RTE_SWX_INSTRUCTION_SIZE 256
37#ifndef RTE_SWX_INSTRUCTION_TOKENS_MAX
38#define RTE_SWX_INSTRUCTION_TOKENS_MAX 16
46struct rte_swx_pipeline;
112 const char *port_type_name,
161 const char *port_type_name,
194 const char *mailbox_struct_type_name,
219 const char *extern_type_name,
246 const char *extern_type_name,
273 const char *mailbox_struct_type_name,
333 int last_field_has_variable_size);
355 const char *struct_type_name);
371 const char *struct_type_name);
507 const char *args_struct_type_name,
508 const char **instructions,
509 uint32_t n_instructions);
638 const char *recommended_table_type_name,
837 const char **instructions,
838 uint32_t n_instructions);
883 const char **err_msg);
896 uint32_t n_instructions);
void(* rte_swx_extern_type_destructor_t)(void *object)
int(* rte_swx_extern_func_t)(void *mailbox)
int(* rte_swx_extern_type_member_func_t)(void *object, void *mailbox)
void *(* rte_swx_extern_type_constructor_t)(const char *args)
__rte_experimental int rte_swx_pipeline_build(struct rte_swx_pipeline *p)
__rte_experimental int rte_swx_pipeline_learner_config(struct rte_swx_pipeline *p, const char *name, struct rte_swx_pipeline_learner_params *params, uint32_t size, uint32_t timeout)
__rte_experimental int rte_swx_pipeline_build_from_spec(struct rte_swx_pipeline *p, FILE *spec, uint32_t *err_line, const char **err_msg)
__rte_experimental int rte_swx_pipeline_extern_type_member_func_register(struct rte_swx_pipeline *p, const char *extern_type_name, const char *name, rte_swx_extern_type_member_func_t member_func)
__rte_experimental int rte_swx_pipeline_port_in_type_register(struct rte_swx_pipeline *p, const char *name, struct rte_swx_port_in_ops *ops)
__rte_experimental int rte_swx_pipeline_instructions_config(struct rte_swx_pipeline *p, const char **instructions, uint32_t n_instructions)
__rte_experimental int rte_swx_pipeline_port_out_config(struct rte_swx_pipeline *p, uint32_t port_id, const char *port_type_name, void *args)
__rte_experimental int rte_swx_pipeline_packet_metadata_register(struct rte_swx_pipeline *p, const char *struct_type_name)
__rte_experimental int rte_swx_pipeline_table_config(struct rte_swx_pipeline *p, const char *name, struct rte_swx_pipeline_table_params *params, const char *recommended_table_type_name, const char *args, uint32_t size)
__rte_experimental int rte_swx_pipeline_port_in_config(struct rte_swx_pipeline *p, uint32_t port_id, const char *port_type_name, void *args)
__rte_experimental int rte_swx_pipeline_regarray_config(struct rte_swx_pipeline *p, const char *name, uint32_t size, uint64_t init_val)
__rte_experimental int rte_swx_pipeline_port_out_type_register(struct rte_swx_pipeline *p, const char *name, struct rte_swx_port_out_ops *ops)
__rte_experimental int rte_swx_pipeline_table_type_register(struct rte_swx_pipeline *p, const char *name, enum rte_swx_table_match_type match_type, struct rte_swx_table_ops *ops)
__rte_experimental int rte_swx_pipeline_extern_object_config(struct rte_swx_pipeline *p, const char *extern_type_name, const char *name, const char *args)
__rte_experimental int rte_swx_pipeline_packet_header_register(struct rte_swx_pipeline *p, const char *name, const char *struct_type_name)
__rte_experimental int rte_swx_pipeline_config(struct rte_swx_pipeline **p, int numa_node)
__rte_experimental int rte_swx_pipeline_selector_config(struct rte_swx_pipeline *p, const char *name, struct rte_swx_pipeline_selector_params *params)
__rte_experimental void rte_swx_pipeline_flush(struct rte_swx_pipeline *p)
__rte_experimental void rte_swx_pipeline_run(struct rte_swx_pipeline *p, uint32_t n_instructions)
__rte_experimental void rte_swx_pipeline_free(struct rte_swx_pipeline *p)
__rte_experimental int rte_swx_pipeline_struct_type_register(struct rte_swx_pipeline *p, const char *name, struct rte_swx_field_params *fields, uint32_t n_fields, int last_field_has_variable_size)
__rte_experimental int rte_swx_pipeline_extern_type_register(struct rte_swx_pipeline *p, const char *name, const char *mailbox_struct_type_name, rte_swx_extern_type_constructor_t constructor, rte_swx_extern_type_destructor_t destructor)
__rte_experimental int rte_swx_pipeline_action_config(struct rte_swx_pipeline *p, const char *name, const char *args_struct_type_name, const char **instructions, uint32_t n_instructions)
__rte_experimental int rte_swx_pipeline_extern_func_register(struct rte_swx_pipeline *p, const char *name, const char *mailbox_struct_type_name, rte_swx_extern_func_t func)
__rte_experimental int rte_swx_pipeline_metarray_config(struct rte_swx_pipeline *p, const char *name, uint32_t size)
enum rte_swx_table_match_type match_type
int * action_is_for_default_entry
int default_action_is_const
const char ** action_names
uint8_t * default_action_data
const char ** field_names
int * action_is_for_table_entries
const char * default_action_name
const char * group_id_field_name
uint32_t n_selector_fields
const char ** selector_field_names
const char * member_id_field_name
uint32_t n_members_per_group_max
int * action_is_for_default_entry
int default_action_is_const
const char ** action_names
uint8_t * default_action_data
struct rte_swx_match_field_params * fields
int * action_is_for_table_entries
const char * default_action_name