From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F09D1A0567 for ; Tue, 9 Mar 2021 03:56:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1939422A377; Tue, 9 Mar 2021 03:56:42 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 920784068A; Tue, 9 Mar 2021 03:56:38 +0100 (CET) IronPort-SDR: WvKxVw1+ObZ24XzfKGC6ILmtL4DXx8xPGzfEgrQkbPdhTEKrMyihJLzsAg80at3hI4OUUVJCDU BjRYD/oYsTQA== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="185761182" X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="185761182" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 18:56:37 -0800 IronPort-SDR: dfIymoWkrtkKTctqurgpMO7zAQQjw1HqzeG6D59rTYkWoIMiZbkhZeMMYb690xAn7auQig/mYS F1buFjqAFQYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="588273655" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP; 08 Mar 2021 18:56:37 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) 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.2106.2; Mon, 8 Mar 2021 18:56:36 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 9 Mar 2021 10:56:33 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.2106.013; Tue, 9 Mar 2021 10:56:33 +0800 From: "Chen, LingliX" To: "Zhang, AlvinX" , "Guo, Jia" , "Xing, Beilei" , "Zhang, Qi Z" , "Zhou, JunX W" CC: "dev@dpdk.org" , "Zhang, AlvinX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3] net/i40e: fix inputset field mask Thread-Index: AQHXDmmLGGFUIQ8RxUCrbD/JgLw/L6p6/ztw Date: Tue, 9 Mar 2021 02:56:33 +0000 Message-ID: <41677c8491704608ba25716b5ce21b0d@intel.com> References: <20210201024046.16244-1-alvinx.zhang@intel.com> <20210301070607.24480-1-alvinx.zhang@intel.com> In-Reply-To: <20210301070607.24480-1-alvinx.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v3] net/i40e: fix inputset field mask X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alvin Zhang > Sent: Monday, March 1, 2021 3:06 PM > To: Guo, Jia ; Xing, Beilei ; Z= hang, > Qi Z ; Zhou, JunX W > Cc: dev@dpdk.org; Zhang, AlvinX ; > stable@dpdk.org > Subject: [dpdk-dev] [PATCH v3] net/i40e: fix inputset field mask >=20 > The absolute field offsets of IPv4 or IPv6 header are related to hardware > configuration. The X710 and X722 have different hardware configurations, > and users can even modify the hardware configuration. > Therefore, The default values cannot be used when calculating mask offset= . >=20 > The following flows can be created on X722 NIC, but the packet will not e= nter > the queue 3: > flow create 0 ingress pattern eth / ipv4 proto is 255 / end > actions queue index 3 / end > pkt =3D Ether()/IP(ttl=3D63, proto=3D255)/Raw('X'*40) >=20 > flow create 0 ingress pattern eth / ipv4 tos is 50 / udp / end > actions queue index 3 / end > pkt =3D Ether()/IP(tos=3D50)/UDP()/Raw('X'*40) >=20 > flow create 0 ingress pattern eth / ipv6 tc is 12 / udp / end > actions queue index 3 / end > pkt =3D Ether()/IPv6(tc=3D12,hlim=3D34,fl=3D0x98765)/UDP()/Raw('X'*40) >=20 > flow create 0 ingress pattern eth / ipv6 hop is 34 / end actions > queue index 3 / end > pkt =3D Ether()/IPv6(tc=3D12,hlim=3D34,fl=3D0x98765)/Raw('X'*40) >=20 > This patch read the field offsets from the NIC and return the mask regist= er > value. >=20 > Fixes: 98f055707685 ("i40e: configure input fields for RSS or flow direct= or") > Fixes: 92cf7f8ec082 ("i40e: allow filtering on more IP header fields") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alvin Zhang all regression cases passed. Tested-by: Chen Lingli =20