From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 87162A0471 for ; Tue, 18 Jun 2019 04:58:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 733071C00E; Tue, 18 Jun 2019 04:58:44 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id DC2281BFF1 for ; Tue, 18 Jun 2019 04:58:42 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jun 2019 19:58:41 -0700 X-ExtLoop1: 1 Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.110.186]) by orsmga004.jf.intel.com with ESMTP; 17 Jun 2019 19:58:40 -0700 Date: Tue, 18 Jun 2019 17:40:49 +0800 From: Ye Xiaolong To: Qiming Yang Cc: dev@dpdk.org, wei zhao Message-ID: <20190618094049.GA94733@intel.com> References: <1559552722-8970-1-git-send-email-qiming.yang@intel.com> <20190612075029.109914-1-qiming.yang@intel.com> <20190612075029.109914-2-qiming.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612075029.109914-2-qiming.yang@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH v2 1/3] net/ice: enable switch filter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 06/12, Qiming Yang wrote: >From: wei zhao > >The patch enables the backend of rte_flow. It transfers >rte_flow_xxx to device specific data structure and >configures packet process engine's binary classifier >(switch) properly. > >Signed-off-by: Wei Zhao >--- > drivers/net/ice/Makefile | 1 + > drivers/net/ice/ice_ethdev.h | 6 + > drivers/net/ice/ice_switch_filter.c | 502 ++++++++++++++++++++++++++++++++++++ > drivers/net/ice/ice_switch_filter.h | 28 ++ > drivers/net/ice/meson.build | 3 +- > 5 files changed, 539 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/ice/ice_switch_filter.c > create mode 100644 drivers/net/ice/ice_switch_filter.h > >diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile >index 0e5c55e..b10d826 100644 >--- a/drivers/net/ice/Makefile >+++ b/drivers/net/ice/Makefile >@@ -60,6 +60,7 @@ ifeq ($(CONFIG_RTE_ARCH_X86), y) > SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_rxtx_vec_sse.c > endif > >+SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_switch_filter.c > ifeq ($(findstring RTE_MACHINE_CPUFLAG_AVX2,$(CFLAGS)),RTE_MACHINE_CPUFLAG_AVX2) > CC_AVX2_SUPPORT=1 > else >diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h >index 1385afa..67a358a 100644 >--- a/drivers/net/ice/ice_ethdev.h >+++ b/drivers/net/ice/ice_ethdev.h >@@ -234,6 +234,12 @@ struct ice_vsi { > bool offset_loaded; > }; > >+/* Struct to store flow created. */ >+struct rte_flow { >+ TAILQ_ENTRY(rte_flow) node; >+void *rule; Minor nit: An indentation is needed before void. Thanks, Xiaolong