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 9300FA0A0C; Thu, 1 Jul 2021 14:37:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2906940141; Thu, 1 Jul 2021 14:37:35 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id A9B574003E; Thu, 1 Jul 2021 14:37:32 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10031"; a="188209078" X-IronPort-AV: E=Sophos;i="5.83,314,1616482800"; d="scan'208";a="188209078" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2021 05:37:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,314,1616482800"; d="scan'208";a="447872793" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 01 Jul 2021 05:37:31 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) 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.2242.4; Thu, 1 Jul 2021 05:37:30 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 1 Jul 2021 20:37:28 +0800 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.008; Thu, 1 Jul 2021 20:37:28 +0800 From: "Zhang, Qi Z" To: "Yu, DapengX" , "Xing, Beilei" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/i40e: fix data path corrupt on secondary process Thread-Index: AQHXZm51BH18qpGCFUefilmYNJBSxqsuHqdg Date: Thu, 1 Jul 2021 12:37:28 +0000 Message-ID: <0c3910dafc494f2c9c24c2083b260f77@intel.com> References: <20210609070537.2714889-1-dapengx.yu@intel.com> <20210621072353.80415-1-dapengx.yu@intel.com> In-Reply-To: <20210621072353.80415-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.5.1.3 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 v2] net/i40e: fix data path corrupt on secondary process 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: Yu, DapengX > Sent: Monday, June 21, 2021 3:24 PM > To: Xing, Beilei > Cc: dev@dpdk.org; Zhang, Qi Z ; Yu, DapengX > ; stable@dpdk.org > Subject: [PATCH v2] net/i40e: fix data path corrupt on secondary process >=20 > From: Dapeng Yu >=20 > The rte_eth_devices array is not in share memory, it should not be refere= nced > by i40e_adapter which is shared by primary and secondary. > Any process set i40e_adapter->eth_dev will corrupt another process's cont= ext. >=20 > The patch removed the field "eth_dev" from i40e_adapter. > Now, when the data paths try to access the rte_eth_dev_data instance, the= y > should replace adapter->eth_dev->data with adapter->pf.dev_data. >=20 > Fixes: 4861cde46116 ("i40e: new poll mode driver") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dapeng Yu Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi