summaryrefslogtreecommitdiff
path: root/drivers/net/softnic
diff options
context:
space:
mode:
authorReshma Pattan <reshma.pattan@intel.com>2018-09-11 15:20:31 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2018-10-12 17:58:55 +0200
commit90ec92a06d88a8d48ef135383a5fb7c7594d639f (patch)
tree72d2f2d9e31f685b90d749b0fbb90075adff0c0b /drivers/net/softnic
parente976ffaa5714792dc868be80fa2d4b0a2e45df48 (diff)
downloaddpdk-next-eventdev-90ec92a06d88a8d48ef135383a5fb7c7594d639f.zip
dpdk-next-eventdev-90ec92a06d88a8d48ef135383a5fb7c7594d639f.tar.gz
dpdk-next-eventdev-90ec92a06d88a8d48ef135383a5fb7c7594d639f.tar.xz
net/softnic: add flow API
Add rte_flow infra structure for flow api support. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Diffstat (limited to 'drivers/net/softnic')
-rw-r--r--drivers/net/softnic/rte_eth_softnic_internals.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/softnic/rte_eth_softnic_internals.h b/drivers/net/softnic/rte_eth_softnic_internals.h
index a25eb87..882cfd1 100644
--- a/drivers/net/softnic/rte_eth_softnic_internals.h
+++ b/drivers/net/softnic/rte_eth_softnic_internals.h
@@ -20,6 +20,7 @@
#include <rte_ethdev_driver.h>
#include <rte_tm_driver.h>
+#include <rte_flow_driver.h>
#include "rte_eth_softnic.h"
#include "conn.h"
@@ -44,6 +45,13 @@ struct pmd_params {
};
/**
+ * Ethdev Flow API
+ */
+struct rte_flow;
+
+TAILQ_HEAD(flow_list, rte_flow);
+
+/**
* MEMPOOL
*/
struct softnic_mempool_params {
@@ -762,6 +770,15 @@ struct softnic_table_rule_action {
struct rte_table_action_time_params time;
};
+struct rte_flow {
+ TAILQ_ENTRY(rte_flow) node;
+ struct softnic_table_rule_match match;
+ struct softnic_table_rule_action action;
+ void *data;
+ struct pipeline *pipeline;
+ uint32_t table_id;
+};
+
int
softnic_pipeline_port_in_stats_read(struct pmd_internals *p,
const char *pipeline_name,