6 #ifndef RTE_FLOW_DRIVER_H_ 7 #define RTE_FLOW_DRIVER_H_ 21 #include "ethdev_driver.h" 42 (
struct rte_eth_dev *,
48 struct rte_flow *(*create)
49 (
struct rte_eth_dev *,
56 (
struct rte_eth_dev *,
61 (
struct rte_eth_dev *,
65 (
struct rte_eth_dev *,
72 (
struct rte_eth_dev *,
77 (
struct rte_eth_dev *dev,
78 struct rte_flow *flow,
83 (
struct rte_eth_dev *dev,
89 (
struct rte_eth_dev *dev,
95 struct rte_flow_action_handle *(*action_handle_create)
96 (
struct rte_eth_dev *dev,
102 (
struct rte_eth_dev *dev,
103 struct rte_flow_action_handle *handle,
107 (
struct rte_eth_dev *dev,
108 struct rte_flow_action_handle *handle,
113 (
struct rte_eth_dev *dev,
114 const struct rte_flow_action_handle *handle,
119 (
struct rte_eth_dev *dev,
120 struct rte_flow_action_handle *handle,
121 const void *update,
void *
query,
125 struct rte_flow_action_list_handle *(*action_list_handle_create)
126 (
struct rte_eth_dev *dev,
132 (
struct rte_eth_dev *dev,
133 struct rte_flow_action_list_handle *handle,
137 (
struct rte_eth_dev *dev,
138 struct rte_flow_tunnel *tunnel,
140 uint32_t *num_of_actions,
144 (
struct rte_eth_dev *dev,
145 struct rte_flow_tunnel *tunnel,
147 uint32_t *num_of_items,
151 (
struct rte_eth_dev *dev,
157 (
struct rte_eth_dev *dev,
159 uint32_t num_of_actions,
163 (
struct rte_eth_dev *dev,
165 uint32_t num_of_items,
169 (
struct rte_eth_dev *dev,
170 uint16_t *proxy_port_id,
172 struct rte_flow_item_flex_handle *(*flex_item_create)
173 (
struct rte_eth_dev *dev,
176 int (*flex_item_release)
177 (
struct rte_eth_dev *dev,
178 const struct rte_flow_item_flex_handle *handle,
182 (
struct rte_eth_dev *dev,
188 (
struct rte_eth_dev *dev,
194 struct rte_flow_pattern_template *(*pattern_template_create)
195 (
struct rte_eth_dev *dev,
201 (
struct rte_eth_dev *dev,
202 struct rte_flow_pattern_template *pattern_template,
205 struct rte_flow_actions_template *(*actions_template_create)
206 (
struct rte_eth_dev *dev,
213 (
struct rte_eth_dev *dev,
214 struct rte_flow_actions_template *actions_template,
217 struct rte_flow_template_table *(*template_table_create)
218 (
struct rte_eth_dev *dev,
220 struct rte_flow_pattern_template *pattern_templates[],
221 uint8_t nb_pattern_templates,
222 struct rte_flow_actions_template *actions_templates[],
223 uint8_t nb_actions_templates,
227 (
struct rte_eth_dev *dev,
228 struct rte_flow_template_table *template_table,
231 struct rte_flow *(*async_create)
232 (
struct rte_eth_dev *dev,
235 struct rte_flow_template_table *template_table,
237 uint8_t pattern_template_index,
239 uint8_t actions_template_index,
243 struct rte_flow *(*async_create_by_index)
244 (
struct rte_eth_dev *dev,
247 struct rte_flow_template_table *template_table,
250 uint8_t actions_template_index,
255 (
struct rte_eth_dev *dev,
258 struct rte_flow *flow,
263 (
struct rte_eth_dev *dev,
268 (
struct rte_eth_dev *dev,
274 struct rte_flow_action_handle *(*async_action_handle_create)
275 (
struct rte_eth_dev *dev,
284 (
struct rte_eth_dev *dev,
287 struct rte_flow_action_handle *action_handle,
292 (
struct rte_eth_dev *dev,
295 struct rte_flow_action_handle *action_handle,
301 (
struct rte_eth_dev *dev,
304 const struct rte_flow_action_handle *action_handle,
310 (
struct rte_eth_dev *dev, uint32_t queue_id,
312 struct rte_flow_action_handle *action_handle,
313 const void *update,
void *
query,
318 (
struct rte_eth_dev *dev,
319 struct rte_flow *flow,
324 (
struct rte_eth_dev *dev,
327 struct rte_flow *flow,
329 uint8_t actions_template_index,
333 struct rte_flow_action_list_handle *
334 (*async_action_list_handle_create)
335 (
struct rte_eth_dev *dev, uint32_t queue_id,
342 (
struct rte_eth_dev *dev, uint32_t queue_id,
344 struct rte_flow_action_list_handle *action_handle,
348 (
struct rte_eth_dev *dev,
349 const struct rte_flow_action_list_handle *handle,
350 const void **update,
void **
query,
355 (
struct rte_eth_dev *dev, uint32_t queue_id,
357 const struct rte_flow_action_list_handle *handle,
358 const void **update,
void **
query,
int(* tunnel_item_release)(struct rte_eth_dev *dev, struct rte_flow_item *pmd_items, uint32_t num_of_items, struct rte_flow_error *err)
int(* action_list_handle_destroy)(struct rte_eth_dev *dev, struct rte_flow_action_list_handle *handle, struct rte_flow_error *error)
int(* async_action_list_handle_destroy)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow_action_list_handle *action_handle, void *user_data, struct rte_flow_error *error)
int(* async_action_handle_destroy)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow_action_handle *action_handle, void *user_data, struct rte_flow_error *error)
int(* action_handle_query_update)(struct rte_eth_dev *dev, struct rte_flow_action_handle *handle, const void *update, void *query, enum rte_flow_query_update_mode qu_mode, struct rte_flow_error *error)
int(* template_table_destroy)(struct rte_eth_dev *dev, struct rte_flow_template_table *template_table, struct rte_flow_error *err)
int(* actions_update)(struct rte_eth_dev *dev, struct rte_flow *flow, const struct rte_flow_action actions[], struct rte_flow_error *error)
int(* actions_template_destroy)(struct rte_eth_dev *dev, struct rte_flow_actions_template *actions_template, struct rte_flow_error *err)
int(* get_q_aged_flows)(struct rte_eth_dev *dev, uint32_t queue_id, void **contexts, uint32_t nb_contexts, struct rte_flow_error *error)
int(* tunnel_match)(struct rte_eth_dev *dev, struct rte_flow_tunnel *tunnel, struct rte_flow_item **pmd_items, uint32_t *num_of_items, struct rte_flow_error *err)
int(* pull)(struct rte_eth_dev *dev, uint32_t queue_id, struct rte_flow_op_result res[], uint16_t n_res, struct rte_flow_error *error)
int(* async_destroy)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow *flow, void *user_data, struct rte_flow_error *err)
int(* query)(struct rte_eth_dev *, struct rte_flow *, const struct rte_flow_action *, void *, struct rte_flow_error *)
int(* action_handle_query)(struct rte_eth_dev *dev, const struct rte_flow_action_handle *handle, void *data, struct rte_flow_error *error)
int(* async_action_handle_update)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow_action_handle *action_handle, const void *update, void *user_data, struct rte_flow_error *error)
int(* info_get)(struct rte_eth_dev *dev, struct rte_flow_port_info *port_info, struct rte_flow_queue_info *queue_info, struct rte_flow_error *err)
int(* push)(struct rte_eth_dev *dev, uint32_t queue_id, struct rte_flow_error *err)
int(* validate)(struct rte_eth_dev *, const struct rte_flow_attr *, const struct rte_flow_item [], const struct rte_flow_action [], struct rte_flow_error *)
int(* pattern_template_destroy)(struct rte_eth_dev *dev, struct rte_flow_pattern_template *pattern_template, struct rte_flow_error *err)
int(* async_action_handle_query_update)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow_action_handle *action_handle, const void *update, void *query, enum rte_flow_query_update_mode qu_mode, void *user_data, struct rte_flow_error *error)
int(* get_aged_flows)(struct rte_eth_dev *dev, void **context, uint32_t nb_contexts, struct rte_flow_error *err)
int(* action_handle_destroy)(struct rte_eth_dev *dev, struct rte_flow_action_handle *handle, struct rte_flow_error *error)
int(* pick_transfer_proxy)(struct rte_eth_dev *dev, uint16_t *proxy_port_id, struct rte_flow_error *error)
int rte_flow_restore_info_dynflag_register(void)
int(* tunnel_decap_set)(struct rte_eth_dev *dev, struct rte_flow_tunnel *tunnel, struct rte_flow_action **pmd_actions, uint32_t *num_of_actions, struct rte_flow_error *err)
int(* get_restore_info)(struct rte_eth_dev *dev, struct rte_mbuf *m, struct rte_flow_restore_info *info, struct rte_flow_error *err)
rte_flow_query_update_mode
int(* async_action_list_handle_query_update)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *attr, const struct rte_flow_action_list_handle *handle, const void **update, void **query, enum rte_flow_query_update_mode mode, void *user_data, struct rte_flow_error *error)
int(* async_actions_update)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, struct rte_flow *flow, const struct rte_flow_action actions[], uint8_t actions_template_index, void *user_data, struct rte_flow_error *error)
int(* tunnel_action_decap_release)(struct rte_eth_dev *dev, struct rte_flow_action *pmd_actions, uint32_t num_of_actions, struct rte_flow_error *err)
int(* async_action_handle_query)(struct rte_eth_dev *dev, uint32_t queue_id, const struct rte_flow_op_attr *op_attr, const struct rte_flow_action_handle *action_handle, void *data, void *user_data, struct rte_flow_error *error)
int(* action_list_handle_query_update)(struct rte_eth_dev *dev, const struct rte_flow_action_list_handle *handle, const void **update, void **query, enum rte_flow_query_update_mode mode, struct rte_flow_error *error)
int(* isolate)(struct rte_eth_dev *, int, struct rte_flow_error *)
int(* flush)(struct rte_eth_dev *, struct rte_flow_error *)
int(* dev_dump)(struct rte_eth_dev *dev, struct rte_flow *flow, FILE *file, struct rte_flow_error *error)
int(* destroy)(struct rte_eth_dev *, struct rte_flow *, struct rte_flow_error *)
int(* configure)(struct rte_eth_dev *dev, const struct rte_flow_port_attr *port_attr, uint16_t nb_queue, const struct rte_flow_queue_attr *queue_attr[], struct rte_flow_error *err)
int(* action_handle_update)(struct rte_eth_dev *dev, struct rte_flow_action_handle *handle, const void *update, struct rte_flow_error *error)
const struct rte_flow_ops * rte_flow_ops_get(uint16_t port_id, struct rte_flow_error *error)