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 DA844A0471 for ; Wed, 19 Jun 2019 05:06:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A00D81C1FC; Wed, 19 Jun 2019 05:06:18 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9C9D01C1E1 for ; Wed, 19 Jun 2019 05:06:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 20:06:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,391,1557212400"; d="scan'208";a="335063585" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by orsmga005.jf.intel.com with ESMTP; 18 Jun 2019 20:06:14 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.96]) by KMSMSX151.gar.corp.intel.com ([169.254.10.225]) with mapi id 14.03.0439.000; Wed, 19 Jun 2019 11:06:13 +0800 From: "Zhao1, Wei" To: "Ye, Xiaolong" , "Yang, Qiming" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 1/3] net/ice: enable switch filter Thread-Index: AQHVIPPdU1J/6sy0M06ZNgNITQs6Aqagq86AgAGp75A= Date: Wed, 19 Jun 2019 03:06:12 +0000 Message-ID: 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> <20190618094049.GA94733@intel.com> In-Reply-To: <20190618094049.GA94733@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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" Hi, xiaolong > -----Original Message----- > From: Ye, Xiaolong > Sent: Tuesday, June 18, 2019 5:41 PM > To: Yang, Qiming > Cc: dev@dpdk.org; Zhao1, Wei > Subject: Re: [dpdk-dev] [PATCH v2 1/3] net/ice: enable switch filter >=20 > 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) +=3D ice_rxtx_vec_sse.c endif > > > >+SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) +=3D ice_switch_filter.c > > ifeq ($(findstring > RTE_MACHINE_CPUFLAG_AVX2,$(CFLAGS)),RTE_MACHINE_CPUFLAG_AVX2) > > CC_AVX2_SUPPORT=3D1 > > 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; >=20 > Minor nit: An indentation is needed before void. Ok, Update in v3 >=20 > Thanks, > Xiaolong