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 EA618A0093; Fri, 22 May 2020 09:43:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 295D21D90C; Fri, 22 May 2020 09:43:30 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 606F61D90B for ; Fri, 22 May 2020 09:43:28 +0200 (CEST) IronPort-SDR: lTBiGbl+Ck9kmtad/q9yWeTEllGJp7AEU+vlksbc+xakEe4e0SvPyXVtmjZUhRet4dBVS4LPuc kgChlT26s10w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2020 00:43:27 -0700 IronPort-SDR: SQDc1dpQfULKOx8MZhLm6zjIQQTaxVtubCK/zYbZqrWxyHY3h3R6voSAuKH25g+GmHY15CkkEz 7Kq9D7QIvGrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,420,1583222400"; d="scan'208";a="300595865" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 22 May 2020 00:43:26 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 22 May 2020 00:43:26 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 22 May 2020 00:43:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.241]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.110]) with mapi id 14.03.0439.000; Fri, 22 May 2020 15:43:23 +0800 From: "Zhang, Qi Z" To: "Peng, Yuan" , "Guo, Jia" , "Xing, Beilei" , "Wu, Jingjing" , "Yang, Qiming" CC: "Ye, Xiaolong" , "dev@dpdk.org" , "Guo, Jia" Thread-Topic: [dpdk-dev] net/iavf: fix invalid flow access Thread-Index: AQHWL+s3V1OElWjxkU+0zmKWMZm6XKizuWEA Date: Fri, 22 May 2020 07:43:22 +0000 Message-ID: <039ED4275CED7440929022BC67E70611548248EC@SHSMSX103.ccr.corp.intel.com> References: <20200522021151.55835-1-jia.guo@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] net/iavf: fix invalid flow access 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: Peng, Yuan > Sent: Friday, May 22, 2020 11:44 AM > To: Guo, Jia ; Xing, Beilei ; Z= hang, > Qi Z ; Wu, Jingjing ; Yang, > Qiming > Cc: Ye, Xiaolong ; dev@dpdk.org; Guo, Jia > > Subject: RE: [dpdk-dev] net/iavf: fix invalid flow access >=20 > Test-by Peng, Yuan >=20 > -----Original Message----- > From: dev On Behalf Of Jeff Guo > Sent: Friday, May 22, 2020 10:12 AM > To: Xing, Beilei ; Zhang, Qi Z ; > Wu, Jingjing ; Yang, Qiming > > Cc: Ye, Xiaolong ; dev@dpdk.org; Guo, Jia > > Subject: [dpdk-dev] net/iavf: fix invalid flow access >=20 > When hash init, the default rss rules would be added, while hash uninit, = the > default rss rules should be deleted. Add the missing part in the hash uni= nit > process. Also add invalid flow checking func in iavf generic flow to avoi= d the > error of "Cannot access memory at address 0xXXXXXX" occur. >=20 > Fixes: 5ea614254332 ("net/iavf: fix VF reset for RSS") > Fixes: ff2d0c345c3b ("net/iavf: support generic flow API") >=20 > Signed-off-by: Jeff Guo Acked-by: Qi Zhang