6 #ifndef RTE_FLOW_DRIVER_H_ 7 #define RTE_FLOW_DRIVER_H_ 67 (
struct rte_eth_dev *,
73 struct rte_flow *(*create)
74 (
struct rte_eth_dev *,
81 (
struct rte_eth_dev *,
86 (
struct rte_eth_dev *,
90 (
struct rte_eth_dev *,
97 (
struct rte_eth_dev *,
102 (
struct rte_eth_dev *dev,
107 (
struct rte_eth_dev *dev,
109 uint32_t nb_contexts,
112 struct rte_flow_shared_action *(*shared_action_create)
113 (
struct rte_eth_dev *dev,
119 (
struct rte_eth_dev *dev,
120 struct rte_flow_shared_action *shared_action,
124 (
struct rte_eth_dev *dev,
125 struct rte_flow_shared_action *shared_action,
130 (
struct rte_eth_dev *dev,
131 const struct rte_flow_shared_action *shared_action,
136 (
struct rte_eth_dev *dev,
137 struct rte_flow_tunnel *tunnel,
139 uint32_t *num_of_actions,
143 (
struct rte_eth_dev *dev,
144 struct rte_flow_tunnel *tunnel,
146 uint32_t *num_of_items,
150 (
struct rte_eth_dev *dev,
156 (
struct rte_eth_dev *dev,
158 uint32_t num_of_actions,
162 (
struct rte_eth_dev *dev,
164 uint32_t num_of_items,
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(* dev_dump)(struct rte_eth_dev *dev, FILE *file, 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(* query)(struct rte_eth_dev *, struct rte_flow *, const struct rte_flow_action *, void *, struct rte_flow_error *)
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(* get_aged_flows)(struct rte_eth_dev *dev, void **context, uint32_t nb_contexts, struct rte_flow_error *err)
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)
int(* shared_action_destroy)(struct rte_eth_dev *dev, struct rte_flow_shared_action *shared_action, 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(* shared_action_query)(struct rte_eth_dev *dev, const struct rte_flow_shared_action *shared_action, void *data, struct rte_flow_error *error)
int(* shared_action_update)(struct rte_eth_dev *dev, struct rte_flow_shared_action *shared_action, const struct rte_flow_action *update, 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(* destroy)(struct rte_eth_dev *, struct rte_flow *, struct rte_flow_error *)
const struct rte_flow_ops * rte_flow_ops_get(uint16_t port_id, struct rte_flow_error *error)