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 B4C14A034C; Wed, 21 Sep 2022 08:04:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 237D840697; Wed, 21 Sep 2022 08:04:17 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id C83D94014F for ; Wed, 21 Sep 2022 08:04:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663740255; x=1695276255; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=CXnid9Q1KBLeNqlMbRCmA+LrScoxHwhReM2bA+JqCmI=; b=GNrRsphVKUpYb8F/q3ruaNgfn2gl1AJmwSh1gEg8HszU9yiLq2vKEBZZ B1qBAyblTTpdGAZ9JlaEsgkMtvuwx35tSyDEr+zM5erBcUaRNLkwcSeJ7 BMqkBG2/rQObuwUjagOrDHatewwX83O7768QRa6NZKFnxq2QYYCEQ16I/ sdvNoh/H6fabkTYfxwnTW4v2PuwcPDWTmoyxlV3kKtLr8G7AOYbs1QNgD /xZW6YpIuJ19bA1V+LJuxulJTR6asGRk0+yVcsx+HPiRyQoML1qWGEBLf VQnNHSGUQwGHhjgjhVbPn5sfoaTWYYlbbt6EqFmTKXtOzGUY+YrJBNnJ5 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="297506414" X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="297506414" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 23:04:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="687734288" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP; 20 Sep 2022 23:04:10 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2375.31; Tue, 20 Sep 2022 23:04:09 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 20 Sep 2022 23:04:09 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 20 Sep 2022 23:04:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXnBDGUCQBWqSW7G8qH7i5DURde5cURH+1h5puPNeuUqxrbwMVp6kIiJugKgeOvvhU9TM1WhOQcS4EQS96Gt1puhiBlDyLzxlLoueRZe/oayzsQjPfCKBzfeh4yAdLq94xoN76SMq7BkRmX2w9KgCVPgVGD2dI+roYCfwbcgtIb98EbIo7jJsgdVe6XMphLSN50ndxKxtD62Kypr1PFDVeUTb6hFphr3CoyK2OSm6YHpPlxyfV2sYkmQQlM2JhiCG1W21xcUa5eDkSFy6yWMgKl8+bHXkBnUKko9aFVWxTqHy+5KICOdkxEL8YS7J2MpLfSKaFLApmS8GnvUwCSlSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RcvMndIfJuDIHhjZ/fP2t7WbUag2GDLOVV1wO0mIoTQ=; b=NzXnymNulXcfe2PI3ozAE/zuGPRhncQGZikUZ6Dd4/CWKARoBkBGJilmpRMWFPJjzUv5iVOzrIodL/asPkGH6qgIj7FHWCqvZVWnHSTxEtVxzZHCapIIHHXBRcZBtoSPMApz3ntwnQwJvAU8mj404jt3XcLDMNqBvgQcl1x9BYqn+USyObLiPvd3cSBXAb06qnbrBKxbNrQvi0hZ4hKgFUNG/XrHsfAV9mCESLNdTD3mthtdY54UeEP9SBh8RraEHvyzVaeHWFhTLULZ5KwrusCBGJLAGf+PDlRE9LBjIXqvbm4cMkKNrps6WTyx9SS/uFB//I6J5QMEVAKPHx2Izw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from LV2PR11MB5997.namprd11.prod.outlook.com (2603:10b6:408:17f::10) by IA0PR11MB7403.namprd11.prod.outlook.com (2603:10b6:208:431::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Wed, 21 Sep 2022 06:04:07 +0000 Received: from LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::9171:8787:3991:bec0]) by LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::9171:8787:3991:bec0%5]) with mapi id 15.20.5632.018; Wed, 21 Sep 2022 06:04:07 +0000 From: "Xing, Beilei" To: "Guo, Junfeng" , "Zhang, Qi Z" , "Wu, Jingjing" CC: "dev@dpdk.org" , "Wang, Xiao W" , "Li, Xiaoyun" Subject: RE: [PATCH v2 03/14] net/idpf: add support for device initialization Thread-Topic: [PATCH v2 03/14] net/idpf: add support for device initialization Thread-Index: AQHYwRZ4hchplpMPVk2kgBW5sl9RLK3pfTXQ Date: Wed, 21 Sep 2022 06:04:07 +0000 Message-ID: References: <20220803113104.1184059-1-junfeng.guo@intel.com> <20220905105828.3190335-1-junfeng.guo@intel.com> <20220905105828.3190335-4-junfeng.guo@intel.com> In-Reply-To: <20220905105828.3190335-4-junfeng.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV2PR11MB5997:EE_|IA0PR11MB7403:EE_ x-ms-office365-filtering-correlation-id: d6174254-96a4-4f75-166e-08da9b97185e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8ua5qSJlj7j48TpzKD6xg+zw1i/I1zrYmE2yRvBmt//LsGReQVNBtVrEX/4yS0fjCLjXxHPBRzgrQF0PKtaRIAsGlCOqqQIpa0oQam/avxnt/EjdNbGzswKk2bl3wy49NPuLCdOHiZoTrDehYQYvv06o6dUjqL5PHuOaH60sloTOk7IQBNak7z+ACK0RPrLh55BNEtTFBbwjPDhTD2DRNVH3Zil0QfObT37gHlLFoO3I9xpP/bT52EpU7eNXC7L5i3kJMyjPgavIN1E9nPo/L9sgM43Eoe5LIdUBtQ2FA8slLRY6nIhqx7UNUbYTsmsPzuFywC5u/oWso1MXnA5FAJNRJJpxh2Nk5rUYHBVKiLFmggUsr8PMP1a1J69pTEwaib2kjT19Dm6dT0qudTLY2pWoCJontfgGwGZSLufguI4L/jn4NU0QAgxRe7aEDQrq9MFHAmjY0j6XprA83eLoev+bG8II5fLuKd+gR+EBgVkl+7QOXztU55PCoEvMUtA4jmq4vofYaYoM12Dwp4A+t5LQFF4c76qmpocPAQST/Gb0RC9pmXOF+lc5jjBlnA7GmXnWfBTk8JWz4Jhp47pf7cMbfs/+JfLUUHmG72Z8N+woqjfNTLVn7H8rfjueKW1hw5nF6GxWoGp93YRTqkblrmHVA3TTx2QsrHf2Dgd3diJlydiPuncqPyxvs9IV0HtBaYgAuNgI9ar4dZKtmPTpgFZPyAPnoVPlbekPosqHwzMtz/NRgLLdcbnRBf2j9ydxYzwNaObaz62b3wi/YP1oMA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB5997.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(346002)(396003)(366004)(376002)(136003)(451199015)(186003)(86362001)(52536014)(122000001)(38070700005)(38100700002)(82960400001)(8936002)(4744005)(5660300002)(66556008)(8676002)(76116006)(64756008)(66446008)(66476007)(66946007)(4326008)(55016003)(2906002)(107886003)(478600001)(9686003)(6506007)(110136005)(26005)(7696005)(6636002)(54906003)(316002)(41300700001)(71200400001)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4vl0HWavgx+49XUvaBJHTiwBgg0zFzReSKBlegmiCXI0QZl0uRGIxSt9gK1o?= =?us-ascii?Q?xA/2QXrgvuukOcoAbkXqNZL60/vBmUupghKaECxJxwpIAi4yjXq07tLJXNhV?= =?us-ascii?Q?o0Ia/4HyorLw8kTA4vdkAUU/crH3tiTDeL8guBpkaUix3KALSxTvc1x7Gvce?= =?us-ascii?Q?Rr+A4Q6bM1HC/8y7Y8FBz7Hj8HT1HLzDhzLZxN2iyXK5rd/WNKvamsgfmgu1?= =?us-ascii?Q?Bts0W3zQGBvUE3Q4kWz408Jcc977u4EYXaaoQ9zFN+FSrdaGz7WdlntaEvCC?= =?us-ascii?Q?MP7r4oiZ31Dt4VL27LwmN5UXlKNnY8bPcAzBeifRkvRfV1Ahlu0pdZpqc0LF?= =?us-ascii?Q?5MdzmlnI3XaBp9ngH2ldMARlKgmZrmmiBeClCNZvrwiojSBCesC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XwvzC3Abuwaf+oGf4DyjIjH7Rxq3RsOH6r?= =?us-ascii?Q?uCJaFttv2jLdMM09cvjylZj8AkKXzVDGyPPA/cMBdCcyvONrFFRGx3xW4AH1?= =?us-ascii?Q?Kky2W9Y7BGXnG3pefvJ+Rc6z6pxJs0poOhzcAD+MTeuBi+0h5fn0DUzRmSb5?= =?us-ascii?Q?OGXJNJyutZsudUPyZp5wJdGUQkXmxhALuIR4NL6vNDF+BkoqDMpZGJcq4sac?= =?us-ascii?Q?CGvHgFB/6KnaVDWuZG7vOhJYYHLl72AZkJo09goddqQRRAt6H3EBI2d5OjNP?= =?us-ascii?Q?pHOaDCpnruNKiXmZmcWTDqm7BYqNANuuBU+G+H1/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV2PR11MB5997.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6174254-96a4-4f75-166e-08da9b97185e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 06:04:07.7064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KUvepI4IKWPJoaQVXAfvBiwm5zSuIkd/56qhL/oiwZGOTGYIEsw6H/Y2HGce+ALFo71lbXFq6kO7s7sKU+deaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7403 X-OriginatorOrg: intel.com 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 > +static void > +idpf_adapter_rel(struct idpf_adapter *adapter) { > + struct iecm_hw *hw =3D &adapter->hw; > + int i; > + > + iecm_ctlq_deinit(hw); > + > + rte_free(adapter->caps); > + adapter->caps =3D NULL; > + > + rte_free(adapter->mbx_resp); > + adapter->mbx_resp =3D NULL; > + > + if (adapter->vport_req_info) { > + for (i =3D 0; i < adapter->max_vport_nb; i++) { > + rte_free(adapter->vport_req_info[i]); > + adapter->vport_req_info[i] =3D NULL; > + } > + rte_free(adapter->vport_req_info); > + adapter->vport_req_info =3D NULL; > + } > + > + if (adapter->vport_recv_info) { > + for (i =3D 0; i < adapter->max_vport_nb; i++) { > + rte_free(adapter->vport_recv_info[i]); > + adapter->vport_recv_info[i] =3D NULL; > + } Also need to free adapter->vport_recv_info here. > + } > + > + rte_free(adapter->vports); > + adapter->vports =3D NULL; > +} > +