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 5211EA04AB; Mon, 31 Aug 2020 05:53:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 26D61137D; Mon, 31 Aug 2020 05:53:35 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 20730A3 for ; Mon, 31 Aug 2020 05:53:33 +0200 (CEST) IronPort-SDR: K2xTfbezhZptPtutGJv4Y9QdVbZqg4kuau8BeDPcNnF9jxXmxtvAYgbIwkSmoy8uC/S1rZsuvI yYxAHqQfEqRA== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="241719719" X-IronPort-AV: E=Sophos;i="5.76,374,1592895600"; d="scan'208";a="241719719" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2020 20:53:32 -0700 IronPort-SDR: fpP3T2AiZ1wc3pJRFUiTCnz+IMvVxWpRgT0HnFgzU9IVTxhBgvsi0j60mo73RFl/M0rV6yl4ng C5lnZi8DKbAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,374,1592895600"; d="scan'208";a="476565951" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP; 30 Aug 2020 20:53:32 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 30 Aug 2020 20:53:30 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 30 Aug 2020 20:53:30 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 30 Aug 2020 20:53:30 -0700 Received: from shsmsx107.ccr.corp.intel.com ([169.254.9.141]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.115]) with mapi id 14.03.0439.000; Mon, 31 Aug 2020 11:53:27 +0800 From: "Zhang, Qi Z" To: "Wang, Haiyue" , "dev@dpdk.org" , "Yang, Qiming" CC: "Guo, Junfeng" Thread-Topic: [PATCH v2] net/ice: optimize the FlexiMD hardware check Thread-Index: AQHWcEULIYkKdeA1EESC2Cd+8Cc/AqlRs+WA Date: Mon, 31 Aug 2020 03:53:27 +0000 Message-ID: <039ED4275CED7440929022BC67E706115522E1A8@SHSMSX107.ccr.corp.intel.com> References: <20200811152044.462128-1-haiyue.wang@intel.com> <20200812005753.467362-1-haiyue.wang@intel.com> In-Reply-To: <20200812005753.467362-1-haiyue.wang@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.5.1.3 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/ice: optimize the FlexiMD hardware check 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" > -----Original Message----- > From: Wang, Haiyue > Sent: Wednesday, August 12, 2020 8:58 AM > To: dev@dpdk.org; Yang, Qiming ; Zhang, Qi Z > > Cc: Guo, Junfeng ; Wang, Haiyue > > Subject: [PATCH v2] net/ice: optimize the FlexiMD hardware check >=20 > The Flexible Metadata #4 and #5 in the Rx Flex Descriptor are defined to > extract the protocol specified fields or its offset. Its function relays = on the DDP > package support in hardware. >=20 > Optimize to only check the hardware support when the user specifies the > 'proto_xtr' devargs. And not require all the types need to be support in > hardware, otherwise if new protocol extraction type is introduced, it is = hard to > maintain the compatibility. Just check the type support in need. >=20 > And the protocol IDs are 8 bits length, so the uint8_t is the right type = to be > used. Also introduce the 'opcode' variable to specify the metadata extrac= tion > type: it can be protocol fields or offset report. >=20 > Signed-off-by: Haiyue Wang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi