net/sfc: generalise flow start and stop path
[dpdk.git] / drivers / net / sfc / sfc_flow.h
index 70f0cdf..5d87212 100644 (file)
@@ -85,6 +85,18 @@ void sfc_flow_fini(struct sfc_adapter *sa);
 int sfc_flow_start(struct sfc_adapter *sa);
 void sfc_flow_stop(struct sfc_adapter *sa);
 
+typedef int (sfc_flow_parse_cb_t)(struct rte_eth_dev *dev,
+                                 const struct rte_flow_item items[],
+                                 const struct rte_flow_action actions[],
+                                 struct rte_flow *flow,
+                                 struct rte_flow_error *error);
+
+typedef int (sfc_flow_insert_cb_t)(struct sfc_adapter *sa,
+                                  struct rte_flow *flow);
+
+typedef int (sfc_flow_remove_cb_t)(struct sfc_adapter *sa,
+                                  struct rte_flow *flow);
+
 #ifdef __cplusplus
 }
 #endif