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 80638A0C41; Sat, 9 Oct 2021 11:40:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C8CF40040; Sat, 9 Oct 2021 11:40:32 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 913974003C; Sat, 9 Oct 2021 11:40:30 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10131"; a="226938210" X-IronPort-AV: E=Sophos;i="5.85,360,1624345200"; d="scan'208";a="226938210" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2021 02:40:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,360,1624345200"; d="scan'208";a="590798895" Received: from irsmsx601.ger.corp.intel.com ([163.33.146.7]) by orsmga004.jf.intel.com with ESMTP; 09 Oct 2021 02:40:28 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by irsmsx601.ger.corp.intel.com (163.33.146.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sat, 9 Oct 2021 10:40:26 +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; Sat, 9 Oct 2021 17:40:24 +0800 From: "Zhang, Qi Z" To: "Yu, DapengX" , "Wu, Jingjing" , "Xing, Beilei" , "Richardson, Bruce" , "Ananyev, Konstantin" CC: "dev@dpdk.org" , "Yigit, Ferruh" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/iavf: fix multi-process shared data Thread-Index: AQHXvL1caaILIH3S9U6SF6K6whRCS6vKaW4Q Date: Sat, 9 Oct 2021 09:40:24 +0000 Message-ID: References: <20210928033753.1955674-1-dapengx.yu@intel.com> <20211009032519.335016-1-dapengx.yu@intel.com> In-Reply-To: <20211009032519.335016-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 v2] 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: Yu, DapengX > Sent: Saturday, October 9, 2021 11:25 AM > To: Wu, Jingjing ; Xing, Beilei ; > Richardson, Bruce ; Ananyev, Konstantin > > Cc: dev@dpdk.org; Zhang, Qi Z ; Yigit, Ferruh > ; Yu, DapengX ; > stable@dpdk.org > Subject: [PATCH v2] net/iavf: fix multi-process shared data >=20 ..... >=20 > int > -iavf_request_queues(struct iavf_adapter *adapter, uint16_t num) > +iavf_request_queues(struct rte_eth_dev *dev, struct iavf_adapter *adapte= r, > + uint16_t num) No need adapter as parameter here. Below help to covert from eth_dev to iavf_adapter struct iavf_adapter *adapter =3D IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); > { > - struct rte_eth_dev *dev =3D adapter->eth_dev; > struct iavf_info *vf =3D IAVF_DEV_PRIVATE_TO_VF(adapter); > struct rte_pci_device *pci_dev =3D RTE_ETH_DEV_TO_PCI(dev); > struct virtchnl_vf_res_request vfres; > -- > 2.27.0