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 CBDDAA034C for ; Mon, 8 Aug 2022 02:30:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37B59427F9; Mon, 8 Aug 2022 02:30:48 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id E3228400D7; Mon, 8 Aug 2022 02:30:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659918646; x=1691454646; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=pBzE0b1KIrVClWE+agydr8E9BGYQcY24qkaXIzGEolc=; b=fEuBz6jxRMBnuCei3Zi+4zAdBwJDYYSJvsl2WyhgR93EjQTNLrR2dTsn x34YofUKztKR8a6orUoGMGntBuAu/+cfBahhCG/jBcqGuLYggQHUARurQ WW9F0a97htqFynGkpbj8b9GZvB+CsGUNpD8ps2Ns+qYi/COR0U3vH+ezX mSyLzYZXqbALscaGnGE1KIaAXkvCPgXe1lbe7DugPRCnU7ycd90dsvyas bqak8DHhuv39umMgsxM8Tw36T27C9eR3Nr2Ks5JoyriV3nQSBBY4oMpk4 0kF9aJmK2t8hhfDijws31nfdrfy+AcYzSDuVAApW5GSq4bos2ZLBavxmj Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10432"; a="354473414" X-IronPort-AV: E=Sophos;i="5.93,221,1654585200"; d="scan'208";a="354473414" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2022 17:30:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,221,1654585200"; d="scan'208";a="672276343" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga004.fm.intel.com with ESMTP; 07 Aug 2022 17:30:44 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Sun, 7 Aug 2022 17:30:44 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Sun, 7 Aug 2022 17:30:44 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Sun, 7 Aug 2022 17:30:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dd0pn9fvldfyXH9NrYPRPUJWkVC3nibxjXLKQm5ort96dz737ke5EzSv+w5eev/xNWL/u8yvIr4UaB55Ofh7y9OBG9KbMO4CZXkzz1g9lkG6FOEzd+gVCkuBRzCHs2DOs4ICCIaRdn2ERzAdd2Qh/4gkPqzydJFjw/cuYlpwEU4StsOa90T2OyF5nH82juYPdYGJTujRhRfYcIy5LoOHYu4a1qNfCjHQXmCnNLNKQiB30VMUNSBOplKqqCo8OmQCP40p9kbgwTP0dLQyiSAjzskpG+G6yKGTqA7cataze34onE/I11PkbM5r9ES9lxT7qpCrAl5AA+FgZC93ne+/fQ== 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=pBzE0b1KIrVClWE+agydr8E9BGYQcY24qkaXIzGEolc=; b=aKx3cFOn3AxklSDOtraCNGUV3hTFn5yCOWqgiIB5IhRdDWvXZIqG3OMtsYNR35eplvgyXN6Twk5dkMHVJSxbO9nMbrFex4xUjX8cTo3La7MmmzNPzkSwm5sAHL2HScpn3EbLjsNtu1WGnQBN3JxzMEUm2JL6SWwbOc5e+l/4J676wxSAHfFeZshTNvSfOA0rio8kRXtiR1p7ul/f6IVYtIctu6UCw0jPjb8se7b82qhWn3tFrnVrTWkcpikILOHhNXITxhEy1uh9lo07Faf74WpISKs3lpr7qWg/lpmsUFqSjrYlf1Ti5Ep5bmTSjlH2k1p4w7skP3ja0uykosDOlg== 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 DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by BL1PR11MB5286.namprd11.prod.outlook.com (2603:10b6:208:312::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Mon, 8 Aug 2022 00:30:42 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::dd15:c17:27dd:47f8]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::dd15:c17:27dd:47f8%5]) with mapi id 15.20.5504.020; Mon, 8 Aug 2022 00:30:42 +0000 From: "Zhang, Qi Z" To: "Zhang, Yuying" , "Zhang, Ke1X" , "thomas@monjalon.net" , "Xing, Beilei" , "ferruh.yigit@xilinx.com" , "Zhou, YidingX" , "dev@dpdk.org" CC: "stable@dpdk.org" Subject: RE: [PATCH v4] net/i40e: fix the issue caused by PF and VF release order Thread-Topic: [PATCH v4] net/i40e: fix the issue caused by PF and VF release order Thread-Index: AQHYmCsMv11hd4opw0uL7g7YMN8P+K2a+2MAgAlJj2CAAAbM4A== Date: Mon, 8 Aug 2022 00:30:42 +0000 Message-ID: References: <20220713071112.6182-1-ke1x.zhang@intel.com> <20220715090359.76538-1-ke1x.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fdf806cd-c3f2-47b0-d4da-08da78d539dd x-ms-traffictypediagnostic: BL1PR11MB5286:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7w0K1vGGpD9ily383ds27CnSr5wqpSYZSQ7Vvx6aezP5ypGpkHJK7h4pm1EPIJjYmEtARJH4rctCwQRm5ZPClUelS1c2xrcVctiS6Lp7uz+rMVCNjbNWpk4TozErJdDQ3b6eychneFG0gWXHrUZnT/ewVxZEJDYc2ORNoHD6kkl2gV2OyMF+69pq014NLF15cqi5DHAYcj7S+0jbaDW9HtjQbQl7hNEwzk6tga4xqjT40TTjHjlot1yLaCJfvPSmxy/7Y8saiRGLnOoRyVGuWUuth02VRpskZF4toCyDSTOMSqnXixdPX4D61UGRTbUjRkYaujOAmGonSBesdkSJi4HHwD/9cZ8EBtpvTlOWgrcC74sFBSeYQxquxS6qDULDzWjUVzrOC2zyQuX9XKDUREKP0zJzUdVHKWeNmDcFfqF+E3n4/rcDGLwcSu+HA/iJPRU5LBGSL6okLCC0bMt/MdQp5Ais0K4l2JlP8xt9yfNKQE6WpOopjnL3UqjJlOaZAAmcCZGgqFt2aMbFFNntP/G96Bg8r5a8rnJo+FEk/JoPLLuzD9Y6Oohtp45WjEkwcdHDYehrdlhKPA4BzV2seQGlKu8zHWghp+F6Ec/YPKtFF9IcZSN2SZHrWu2+W8KRuISxjKDjHszM88WxUJILVaym0Q9o+TtuakTLWvzCQ61IyffW+Tpzj9xZaft5nZkXnwhl9e5GzE/XQDD5cDdphuVWqrn5Rqb7O3Wum8Wcu88Q9ftN5qiKFOh692iBn4kwbabgyO4G6zMwDPN07zZUQzuCz6n60/3EAzQsXZFAwbc8LJZ6N3JXLKUjX54Y75HQoWeWuxzv4Lpp4KDJXkZh5Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(396003)(376002)(346002)(366004)(136003)(6506007)(7696005)(53546011)(2906002)(41300700001)(83380400001)(38100700002)(122000001)(33656002)(186003)(38070700005)(9686003)(2940100002)(26005)(921005)(82960400001)(86362001)(71200400001)(64756008)(4326008)(8676002)(66446008)(66476007)(66946007)(76116006)(110136005)(66556008)(316002)(8936002)(52536014)(478600001)(55016003)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DmX6XHLmo9qDe1yU1AoPvs9z1CX2q4MY7y5C8cHnIVglQRCGBf6ZM9b9BZnO?= =?us-ascii?Q?zL7QxFMrYl4tsCEnIMArGjfNA7y/Wex4VVhgaztQHozIBp/AYyjlz/dGYpQd?= =?us-ascii?Q?12PddUtdQvPlRlldw8tjz4R3vhAItEQE8Noq+3t6lpVJdCu1/WOcSYXS0gsR?= =?us-ascii?Q?X1JHHI4EAANrjIniSG60eqHjhnisMiKGq2gGd+In1EAaJ30lTKIDJGCpvx6s?= =?us-ascii?Q?lOMIlg25kDlLJstaWFDoSMBsJMVJmwKNU6CcO2edDrWQFegdaS17uc2FlvZP?= =?us-ascii?Q?KPslUqhKilU/3htInsvLRzI41cVTKsszwGaFp5gO/cmZngIu2K4/oI7gVTr4?= =?us-ascii?Q?0HrhAex2uEFo+RlXhnqVt7p/LF4NP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lKiE6PMVJhxfZVDf6BagK7srdn8U5IG9uzKY0PRU9Xy1UDv7akr?= =?us-ascii?Q?yyjtJ+yRed2BwqScDeHZE26ykxGyTnTEl+wGZ6VRP3PdDHy9+73IXlalbgmw?= =?us-ascii?Q?4efuA9Ci/zyWl6FY+zDKCxLoy2c5AHqSxMRXsFQxVlI1862NrXpCEdCYWNtX?= =?us-ascii?Q?HhiJ3oCRhNcJjos9begg3tZVCPnfjn7AW6ZTwKfH5KR87x5///rT93ilh//Q?= =?us-ascii?Q?Da9PW9xN1x3OaUdd0A8HbEpVPURrkcLDdeuksJdUbEbKNaNt4U9+5w9zmVlG?= =?us-ascii?Q?OCrjXmWCBrB/ArHUl9s0bFivdcOh0Ri19o47pEzf?= 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: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fdf806cd-c3f2-47b0-d4da-08da78d539dd X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2022 00:30:42.0240 (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: //MLy1YJrn2sDucyDnzWG4vusALvjdybPWyruxh1PDuvVIDls2Cm0lBdwF8ecv+D+lBfnMvTZGaefZTn2Qs2bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5286 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: Zhang, Qi Z > Sent: Monday, August 8, 2022 8:06 AM > To: Zhang, Yuying ; Zhang, Ke1X > ; thomas@monjalon.net; Xing, Beilei > ; ferruh.yigit@xilinx.com; Zhou, YidingX > ; dev@dpdk.org > Cc: stable@dpdk.org > Subject: RE: [PATCH v4] net/i40e: fix the issue caused by PF and VF relea= se > order >=20 >=20 >=20 > > -----Original Message----- > > From: Zhang, Yuying > > Sent: Tuesday, August 2, 2022 10:16 AM > > To: Zhang, Ke1X ; thomas@monjalon.net; Xing, > > Beilei ; ferruh.yigit@xilinx.com; Zhou, YidingX > > ; dev@dpdk.org > > Cc: stable@dpdk.org > > Subject: RE: [PATCH v4] net/i40e: fix the issue caused by PF and VF > > release order > > > > Hi Ke, > > > > Please update commit log. > > LGTM. > > > > > -----Original Message----- > > > From: Zhang, Ke1X > > > Sent: Friday, July 15, 2022 5:04 PM > > > To: thomas@monjalon.net; Zhang, Yuying ; > > > Xing, Beilei ; ferruh.yigit@xilinx.com; Zhou, > > > YidingX ; dev@dpdk.org > > > Cc: Zhang, Ke1X ; stable@dpdk.org > > > Subject: [PATCH v4] net/i40e: fix the issue caused by PF and VF > > > release order > > > > > > A segmentation fault occurs when testpmd exit. > > > > > > This is due to fetching the device name from PF, PF is freed firstly > > > and then VF representor is called later. > > > > > > This commit fixes the bug by fetching the device name from VF > > > representor not PF. > > > > instead of PF > > > > > > > > Fixes: e391a7b7f815 ("net/i40e: fix multi-process shared data") > > > Cc: stable@dpdk.org > > > > > > Signed-off-by: Ke Zhang > > Acked-by: Yuying Zhang >=20 > Applied to dpdk-next-net-intel. Overwritten by v5 with refined commit log >=20 > Thanks > Qi