From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reshma Pattan Subject: [PATCH v2 01/15] net/softnic: add infrastructure for flow API Date: Tue, 11 Sep 2018 15:20:31 +0100 Message-ID: <1536675645-10105-2-git-send-email-reshma.pattan@intel.com> References: <1536251222-17275-1-git-send-email-reshma.pattan@intel.com> Cc: Cristian Dumitrescu , Reshma Pattan To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 6F3FE4CA2 for ; Tue, 11 Sep 2018 16:20:49 +0200 (CEST) In-Reply-To: <1536251222-17275-1-git-send-email-reshma.pattan@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add rte_flow infra structure for flow api support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Reshma Pattan --- drivers/net/softnic/rte_eth_softnic_internals.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_internals.h b/drivers/net/softnic/rte_eth_softnic_internals.h index a25eb874c..882cfd191 100644 --- a/drivers/net/softnic/rte_eth_softnic_internals.h +++ b/drivers/net/softnic/rte_eth_softnic_internals.h @@ -20,6 +20,7 @@ #include #include +#include #include "rte_eth_softnic.h" #include "conn.h" @@ -43,6 +44,13 @@ struct pmd_params { } tm; }; +/** + * Ethdev Flow API + */ +struct rte_flow; + +TAILQ_HEAD(flow_list, rte_flow); + /** * MEMPOOL */ @@ -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, -- 2.14.4