From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6225EA00C5; Fri, 8 May 2020 11:34:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B7831DB28; Fri, 8 May 2020 11:34:19 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D0B421DB1D for ; Fri, 8 May 2020 11:34:17 +0200 (CEST) IronPort-SDR: wcDvWwulElAAJPR/21Rtsk2sCh61KrlcP8I6VWpu+gsEY6ymJc2xKQK4d2gltxszRxzNXASiIN UNZh3jkbzKIw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2020 02:34:16 -0700 IronPort-SDR: FE/wfCu3caaThBS2zwnf2Q9LE9tyvHulZ3AJTHwWTGct/MIw+OSuNwhQCeYvPPl8/61+D0WXYp klXyrM666DQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,367,1583222400"; d="scan'208";a="251774296" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 08 May 2020 02:34:16 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 May 2020 02:34:16 -0700 Received: from cdsmsx152.ccr.corp.intel.com (172.17.4.41) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 May 2020 02:34:15 -0700 Received: from cdsmsx102.ccr.corp.intel.com ([169.254.2.168]) by CDSMSX152.ccr.corp.intel.com ([169.254.6.17]) with mapi id 14.03.0439.000; Fri, 8 May 2020 17:34:12 +0800 From: "Zeng, XiaoxiaoX" To: "Zhang, Qi Z" , "Ye, Xiaolong" CC: "dev@dpdk.org" , "Su, Simei" , "Cao, Yahui" Thread-Topic: [dpdk-dev] [PATCH] net/ice/base: fix FDIR rule passthrough mode Thread-Index: AQHWJNfMwcRjTxeOp0GX66gMJozqFKid7B2AgAABXqA= Date: Fri, 8 May 2020 09:34:11 +0000 Message-ID: References: <1588900942-380047-1-git-send-email-simei.su@intel.com> <35e49819d2b24673a62a497b173e8bb3@intel.com> In-Reply-To: <35e49819d2b24673a62a497b173e8bb3@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.6.105] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ice/base: fix FDIR rule passthrough mode 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" Tested-by: Zeng,Xiaoxiao Best regards, Zeng,xiaoxiao > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Simei Su > Sent: Friday, May 8, 2020 9:22 AM > To: Zhang, Qi Z ; Ye, Xiaolong > > Cc: dev@dpdk.org; Cao, Yahui ; Su, Simei > > Subject: [dpdk-dev] [PATCH] net/ice/base: fix FDIR rule passthrough mode >=20 > This patch adds support for FDIR passthrough mode. When FDIR rule hits, > FDIR just forward this packet to the next stage filter. >=20 > Fixes: 55daca4e45fc ("net/ice/base: change function to static") >=20 > Signed-off-by: Simei Su > --- > drivers/net/ice/base/ice_fdir.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_f= dir.c > index c703a7c..33a1732 100644 > --- a/drivers/net/ice/base/ice_fdir.c > +++ b/drivers/net/ice/base/ice_fdir.c > @@ -465,6 +465,10 @@ > if (input->dest_ctl =3D=3D ICE_FLTR_PRGM_DESC_DEST_DROP_PKT) { > fdir_fltr_ctx.drop =3D ICE_FXD_FLTR_QW0_DROP_YES; > fdir_fltr_ctx.qindex =3D 0; > + } else if (input->dest_ctl =3D=3D > + ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER) { > + fdir_fltr_ctx.drop =3D ICE_FXD_FLTR_QW0_DROP_NO; > + fdir_fltr_ctx.qindex =3D 0; > } else { > if (input->dest_ctl =3D=3D > ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_QGROUP) > @@ -476,7 +480,10 @@ > fdir_fltr_ctx.cnt_index =3D input->cnt_index; > fdir_fltr_ctx.fd_vsi =3D ice_get_hw_vsi_num(hw, input->dest_vsi); > fdir_fltr_ctx.evict_ena =3D ICE_FXD_FLTR_QW0_EVICT_ENA_FALSE; > - fdir_fltr_ctx.toq_prio =3D 3; > + if (input->dest_ctl =3D=3D > ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER) > + fdir_fltr_ctx.toq_prio =3D 0; > + else > + fdir_fltr_ctx.toq_prio =3D 3; > fdir_fltr_ctx.pcmd =3D (add) ? ICE_FXD_FLTR_QW1_PCMD_ADD : > ICE_FXD_FLTR_QW1_PCMD_REMOVE; > fdir_fltr_ctx.swap =3D ICE_FXD_FLTR_QW1_SWAP_NOT_SET; > -- > 1.8.3.1