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 A3447A0032; Tue, 28 Sep 2021 13:12:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F08A410D7; Tue, 28 Sep 2021 13:12:49 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 89F5240E3C; Tue, 28 Sep 2021 13:12:47 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="211758915" X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="211758915" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 04:12:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="518964829" Received: from irsmsx604.ger.corp.intel.com ([163.33.146.137]) by fmsmga008.fm.intel.com with ESMTP; 28 Sep 2021 04:12:45 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by IRSMSX604.ger.corp.intel.com (163.33.146.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 28 Sep 2021 12:12:43 +0100 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.012; Tue, 28 Sep 2021 19:12:40 +0800 From: "Zhang, Qi Z" To: "Yu, DapengX" , "Richardson, Bruce" , "Ananyev, Konstantin" , "Wu, Jingjing" , "Xing, Beilei" CC: "dev@dpdk.org" , "Yu, DapengX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/iavf: fix multi-process shared data Thread-Index: AQHXtBpLbUerKYsqBku9RukITtM/Lqu5SyLw Date: Tue, 28 Sep 2021 11:12:40 +0000 Message-ID: References: <20210928033753.1955674-1-dapengx.yu@intel.com> In-Reply-To: <20210928033753.1955674-1-dapengx.yu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows 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-dev] [PATCH] net/iavf: fix multi-process shared data X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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: dev On Behalf Of dapengx.yu@intel.com > Sent: Tuesday, September 28, 2021 11:38 AM > To: Richardson, Bruce ; Ananyev, Konstantin > ; Wu, Jingjing ; Xin= g, > Beilei > Cc: dev@dpdk.org; Yu, DapengX ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/iavf: fix multi-process shared data >=20 > From: Dapeng Yu >=20 > When the iavf_adapter instance is not initialized completedly in the prim= ary > process, the secondary process accesses its "rte_eth_dev" > member, it causes secondary process crash. >=20 > This patch replaces adapter->eth_dev with rte_eth_devices[port_id] in the= data > paths where rte_eth_dev instance is accessed. >=20 > Fixes: f978c1c9b3b5 ("net/iavf: add RSS hash parsing in AVX path") > Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex > descriptor") > Fixes: 63660ea3ee0b ("net/iavf: add RSS hash parsing in SSE path") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dapeng Yu Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi