5#ifndef _RTE_REGEX_CORE_H_
6#define _RTE_REGEX_CORE_H_
22typedef int (*regexdev_info_get_t)(
struct rte_regexdev *dev,
26typedef int (*regexdev_configure_t)(
struct rte_regexdev *dev,
30typedef int (*regexdev_qp_setup_t)(
struct rte_regexdev *dev, uint16_t id,
34typedef int (*regexdev_start_t)(
struct rte_regexdev *dev);
37typedef int (*regexdev_stop_t)(
struct rte_regexdev *dev);
40typedef int (*regexdev_close_t)(
struct rte_regexdev *dev);
43typedef int (*regexdev_attr_get_t)(
struct rte_regexdev *dev,
48typedef int (*regexdev_attr_set_t)(
struct rte_regexdev *dev,
53typedef int (*regexdev_rule_db_update_t)(
struct rte_regexdev *dev,
58typedef int (*regexdev_rule_db_compile_activate_t)(
struct rte_regexdev *dev);
61typedef int (*regexdev_rule_db_import_t)(
struct rte_regexdev *dev,
63 uint32_t rule_db_len);
66typedef int (*regexdev_rule_db_export_t)(
struct rte_regexdev *dev,
70typedef int (*regexdev_xstats_names_get_t)(
struct rte_regexdev *dev,
75typedef int (*regexdev_xstats_get_t)(
struct rte_regexdev *dev,
76 const uint16_t *ids, uint64_t *values,
80typedef int (*regexdev_xstats_by_name_get_t)(
struct rte_regexdev *dev,
81 const char *name, uint16_t *id,
85typedef int (*regexdev_xstats_reset_t)(
struct rte_regexdev *dev,
90typedef int (*regexdev_selftest_t)(
struct rte_regexdev *dev);
93typedef int (*regexdev_dump_t)(
struct rte_regexdev *dev, FILE *f);
96typedef uint16_t (*regexdev_enqueue_t)(
struct rte_regexdev *dev, uint16_t qp_id,
101typedef uint16_t (*regexdev_dequeue_t)(
struct rte_regexdev *dev, uint16_t qp_id,
110 regexdev_info_get_t dev_info_get;
111 regexdev_configure_t dev_configure;
112 regexdev_qp_setup_t dev_qp_setup;
113 regexdev_start_t dev_start;
114 regexdev_stop_t dev_stop;
115 regexdev_close_t dev_close;
116 regexdev_attr_get_t dev_attr_get;
117 regexdev_attr_set_t dev_attr_set;
118 regexdev_rule_db_update_t dev_rule_db_update;
119 regexdev_rule_db_compile_activate_t dev_rule_db_compile_activate;
120 regexdev_rule_db_import_t dev_db_import;
121 regexdev_rule_db_export_t dev_db_export;
122 regexdev_xstats_names_get_t dev_xstats_names_get;
123 regexdev_xstats_get_t dev_xstats_get;
124 regexdev_xstats_by_name_get_t dev_xstats_by_name_get;
125 regexdev_xstats_reset_t dev_xstats_reset;
126 regexdev_selftest_t dev_selftest;
127 regexdev_dump_t dev_dump;
148struct rte_regexdev_data {
150 char dev_name[RTE_REGEXDEV_NAME_MAX_LEN];
153 uint8_t dev_started : 1;
167 regexdev_enqueue_t enqueue;
168 regexdev_dequeue_t dequeue;
171 struct rte_device *device;
173 struct rte_regexdev_data *data;
181extern struct rte_regexdev rte_regex_devices[];
#define __rte_cache_aligned
@ RTE_REGEXDEV_REGISTERED