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 2061A42B0B; Mon, 15 May 2023 04:25:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75196410EE; Mon, 15 May 2023 04:25:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B158440395 for ; Mon, 15 May 2023 04:25: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=1684117545; x=1715653545; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=MZp7u8ScupPZPcGz3FQxv+wCNO7JpElCUOiCj2Mp0xs=; b=H/QX8am46ia0QpNO12fhocFxbfiuz1Kq4fkUr1KdXTmm0woIMVBBjNJh JjVizexEXcLws2rWc5dzXuce7mbXacwL1Jg+lZsMyJ93zkNPpmQ7ludma xavUKFGblVp0QrDs97vJTa8P/M9VOIImSoahywK4pFfV7dOmXzYd+UcPG h7fq/VJAneh8yxyTXO6BMhr5R6+ki5x03XFFbglu9lJxF36Tl7Ns9buUo 3fD+MR4kMV7Zw9ND3DiYldrDrvhFT6WoH0unVHvSprakB64t9UK8yoxWf mpbtIlTRjD0cY1te75pnXIDnHTGY4WIDlqQPzszI8ZZV+DuNp1guDO+Z9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="353365517" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="353365517" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 19:25:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="875005027" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="875005027" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 14 May 2023 19:25:43 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 14 May 2023 19:25:43 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Sun, 14 May 2023 19:25:43 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) 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.2507.23; Sun, 14 May 2023 19:25:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oWUMZDYLzXvyScQQ0/10U5PGkOsw+uvBQBNrKCwb/Qhxpx/sA7YlSqDFfYUJuCvI2gfdFrwaGLWZWmZl0dpcTXxtYZdQmgrl04sLB6r+v1HEPwTyKpHAFuHpDGu203eWptdQJDmf6F77V8WNl0bin3W4wMaVL8ELU2fDhmpIKqWvn4zoNtwAqMZ280Uyn2wAZarS5Qt4Am3iQs9bCbgmO/4Hc2P0pv3OBgk+8ndr9Dj3sbUfr33cEUCt+60QnV+u+ahb23pCB3erahGMVpuxSHax60c1oC+L+291XSkTxkrEELHgbqVjwnW2AUmkLc6rjB4ZUx7b1/c//MwND1GarA== 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=MZp7u8ScupPZPcGz3FQxv+wCNO7JpElCUOiCj2Mp0xs=; b=QUZkgCTI8sXLok5sGzFtqfq7FeLwyLtA+Kth/A9EmQzOKqFh80u8uryDJgMhlhkTp2hdOvd8MRGNaJJIreoaCygViUxDSaj28w2PvwWEuwBBAD39Xh7OGOk6TKg1irfEz3SsM3s34+lvs7DVV7pbdb5iDUKdc1V/35p/dFEIkbNKrNaA18ZJlgTAebvHQpz0OJOLStV/zqls/7ZySMa4jrpKfAOR4oF35Bzbbg0EjMAovJHIcJPEhsdawM9R+e+5go5L9GA9ND2LafhjIiBn8Z5Yb4IOVn3N9rkpVMvUioIpdqj8Hz/dAJlizgsO73wRR6y1K/X0518YdFC16n4QDw== 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 PH7PR11MB6497.namprd11.prod.outlook.com (2603:10b6:510:1f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.29; Mon, 15 May 2023 02:25:39 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589%6]) with mapi id 15.20.6387.030; Mon, 15 May 2023 02:25:38 +0000 From: "Zhang, Qi Z" To: "He, ShiyangX" , "dev@dpdk.org" CC: "Zhou, YidingX" , "He, ShiyangX" , "stable@dpdk.org" , "Wu, Jingjing" , "Xing, Beilei" , "Xu, Ting" Subject: RE: [PATCH] net/iavf: fix large vf queues cannot re-use. Thread-Topic: [PATCH] net/iavf: fix large vf queues cannot re-use. Thread-Index: AQHZgY9tOQ4WGd9t+Eizdzzzt+WNC69ao3Jw Date: Mon, 15 May 2023 02:25:38 +0000 Message-ID: References: <20230508165824.2086818-1-shiyangx.he@intel.com> In-Reply-To: <20230508165824.2086818-1-shiyangx.he@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: DM4PR11MB5994:EE_|PH7PR11MB6497:EE_ x-ms-office365-filtering-correlation-id: 28a045a6-de4b-493f-15f3-08db54ebabfb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D/YSNbMYHdkwYDYEa+VCmTRXoYMkIulCVDttSeRjBXwP2If9Bh6B0DYJMwpZsNZRnGWD9UuY5ojh1ekhePqPZ4p1nX0yYcRjSvlU1ZnJGPB9IuolORtiHJ3gR0QPBif1YD1YfG0iC+GD7gEvyEGUIOvQQXt/GLthOcCRa+bDwJrcjf0VNs46fZCbCv8qKDrj9U0m40UrNrHLWvh+31+AhYJ06rGOoi6Uua46XXocsTkGdQS3IY9XWBdulxynO7H1AWZg/EvJXIxSyrr4qH2xjOj6sZotjBpC64Ef1W2tyixs7+tRpnFElLbhHlB/OLieSLsFWzSHFZ4QUb6FcMnMP6LVD7tUIUx+a/dlgjJU7O7oYYkCCJF1+qL+cxqLb+xiXhQgXsZ4IkYPdyM0WZ4LJH2omneXbLf+WupFpxz7phAYZBsbU6LmIqDljzpPmZUq2Yu0YHxfksDwVAzWanyJuE453EGn0rpUVw3F/TJ11/wRCIGcjb92aw+6WgD0o8Wm/9RSEUWzYF6Icg8m8vdl8iGKHWGur3GTD5E/eHAMfk80JlV1dl5u3aMEYDywajW+2DnRvUpJE5kSADL0qqI6s22bHmlatZ5O/Dp2rT2XHwosWGpc9KeWcBJnYBW29csl 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:(13230028)(366004)(396003)(39860400002)(136003)(346002)(376002)(451199021)(83380400001)(64756008)(66476007)(66556008)(66946007)(33656002)(66446008)(316002)(450100002)(76116006)(55016003)(9686003)(26005)(6506007)(53546011)(107886003)(7696005)(478600001)(2906002)(54906003)(110136005)(71200400001)(86362001)(186003)(52536014)(8676002)(8936002)(5660300002)(82960400001)(4326008)(122000001)(41300700001)(38100700002)(38070700005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EWEXtTa6+wYze37NYoW8JsVFlXVAvrxhsnbStGesRfpgad6Tpt2csXP7CJPh?= =?us-ascii?Q?tSSRd4FS+zjNlx8tAK1Nu/NbxsZtS0+PGsDHnin6Oju7RKFstSvsL6A11BOc?= =?us-ascii?Q?UujjFtEAvoKs8vN55mr+DcFfc5yuPV6HXVA9Q6MuyqN4xbNwPswQxxTjjH12?= =?us-ascii?Q?H+w0r+YbOLRDmhL8kIiC0FL+lxz5BnPp6YW/6e0dHhfnJGwDqLmKs7nd1RKX?= =?us-ascii?Q?JzpnOizeVJyPOcX+0kBtpCXDqSx8WTOTerxFidsT2oCWtpApA2MDG3BiAnpy?= =?us-ascii?Q?40jmuSs3F2BlpwVp2StPqoEm8PUk+ZV3pXiKqRrt8WB6msuHKo4Lupu6QSoF?= =?us-ascii?Q?8SDN/QfeERp3ik/oaUZKuqvRR/H5KYiIwZQLFh2NW3/xXUefhqG1FOc4fs4a?= =?us-ascii?Q?mOld9BbL1s9FdZxZ20o1Vuk7CvF6Efo/8NIv5/vy2Fj2uLKppncMfmGI1DoG?= =?us-ascii?Q?e0voYcI0DZIZDBX8DYCLvAicZQsT3BGvQMDGDpFEb2GaaCV+PShCrF+j4r+c?= =?us-ascii?Q?d0RFxL0S1u4g0toAsUFwqLKP0xj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lQzhFKFDzNUsFZUQPaHP9AW1uRTddsKjtBrv1/MqQkrOmLTLfd/oq7?= =?us-ascii?Q?gztk96NX09voBUtUhQo5obpuWkg2+1RWLKEv/U3rDBzoS5GWBJ8l7RMD8dqm?= =?us-ascii?Q?7aX/WTlQSuRxd6uTghKkuO20a2p43sxg3CwmZEZi?= 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: 28a045a6-de4b-493f-15f3-08db54ebabfb X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2023 02:25:38.2103 (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: bzjBLi6YdcfTMYwD0uSdfUowjsd/1E3MhCxuSzLfixf4AhvGT+rfBV2YfA7CybosP3O4p6//lqjXVQi8V6Dkxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6497 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 > -----Original Message----- > From: Shiyang He > Sent: Tuesday, May 9, 2023 12:58 AM > To: dev@dpdk.org > Cc: Zhou, YidingX ; He, ShiyangX > ; stable@dpdk.org; Wu, Jingjing > ; Xing, Beilei ; Xu, Ting > > Subject: [PATCH] net/iavf: fix large vf queues cannot re-use. >=20 > Multiple vfs created based on one PF. If one of the vf requests a large > number of queues, the queue resources are not released when exiting the > program, resulting in these queues cannot be available to other vfs. >=20 > This commit fixes the issue by resetting the number of queues to default > when closing the dev (refer to the kernel driver) . >=20 > Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more > queues") > Cc: stable@dpdk.org >=20 > Signed-off-by: Shiyang He I assume this is a workaround, as the queue resources may not be released i= f the PMD quits abnormally. A robust solution would rely on the kernel driv= er to reclaim the resources during a VF reset. Nevertheless, this fix is not harmful and provides temporary relief for the= issue until a proper solution can be implemented in the kernel driver. Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi