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 6D906A00C5; Thu, 30 Apr 2020 04:17:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B0B61D9E8; Thu, 30 Apr 2020 04:17:23 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F05681D9E6 for ; Thu, 30 Apr 2020 04:17:21 +0200 (CEST) IronPort-SDR: 9EC3CeNxL8s+oQDs0Q+860fMvyz9yDUL8r6FkKZQVbDXB3+7oSuLjm0YsBwzDqgTx2+ifc5OfQ kmsCxbSGsuUg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 19:17:20 -0700 IronPort-SDR: S2vjzwDnY0pNahniY9F/rRZuH6bDK0JQqjHywAMRjp4CUGhGbDwHZpWOuBNGFDemTKZLEtIw9j l1vA5Tmt0uLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,333,1583222400"; d="scan'208";a="293406028" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 29 Apr 2020 19:17:20 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 29 Apr 2020 19:17:20 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 29 Apr 2020 19:17:19 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.146]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.7]) with mapi id 14.03.0439.000; Thu, 30 Apr 2020 10:17:16 +0800 From: "Zhang, Qi Z" To: "Fu, Qi" , "Zhao1, Wei" , "dev@dpdk.org" Thread-Topic: [PATCH] net/ice/base: fix bm mask set and find switch recipe method Thread-Index: AQHWHSiJr7Zb6OmztUCWvtD3nhmSkaiNkgCAgAHL/oCAAZJ6IA== Date: Thu, 30 Apr 2020 02:17:16 +0000 Message-ID: <039ED4275CED7440929022BC67E7061154806AE3@SHSMSX103.ccr.corp.intel.com> References: <20200428062211.4216-1-wei.zhao1@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 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] net/ice/base: fix bm mask set and find switch recipe method 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: Fu, Qi > Sent: Wednesday, April 29, 2020 6:16 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Zhang, Qi Z > Subject: RE: [PATCH] net/ice/base: fix bm mask set and find switch recipe > method >=20 > Tested-by: Fu, Qi >=20 > > -----Original Message----- > > From: Zhao1, Wei > > Sent: Tuesday, April 28, 2020 2:50 PM > > To: dev@dpdk.org > > Cc: Zhang, Qi Z ; Fu, Qi > > Subject: RE: [PATCH] net/ice/base: fix bm mask set and find switch > > recipe method > > > > Add fuqi > > > > > -----Original Message----- > > > From: Zhao1, Wei > > > Sent: Tuesday, April 28, 2020 2:22 PM > > > To: dev@dpdk.org > > > Cc: Zhang, Qi Z ; Zhao1, Wei > > > > > > Subject: [PATCH] net/ice/base: fix bm mask set and find switch > > > recipe method > > > > > > When we download a switch rule for ipv6 with esp payload "eth / ipv6 > > > / esp spi is 1 / end actions queue index 2 / end" > > > > > > if we don't add bm bit set check for tun_type, then a packet of > > > ipv4 with esp payload > > > > > > "sendp([Ether(dst=3D"00:00:00:00:01:00")/IP(proto=3D50)/ESP(spi=3D1)/ > > > ("X"*480)], iface=3D"ens5f0", count=3D10)" > > > > > > will also go to queue index 2. And also, we need to do tun_type > > > check, or the second rule of following can not be download because > > > of rejection from switch rule download function ice_aq_sw_rules(). > > > > > > "eth / ipv4 / esp spi is 1 / end actions queue index 5 / end" > > > > > > "eth / ipv6 / esp spi is 1 / end actions queue index 2 / end" > > > > > > Signed-off-by: Wei Zhao Acked-by: Qi Zhang