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 7099242415; Thu, 19 Jan 2023 10:09:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19661410DD; Thu, 19 Jan 2023 10:09:55 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2077.outbound.protection.outlook.com [40.107.93.77]) by mails.dpdk.org (Postfix) with ESMTP id 764E64068E for ; Thu, 19 Jan 2023 10:09:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jz5ub8osEsjMscEqgWFVVtAvQ/oXMHGEKkGfVoNzmYKjSh7o8vtiPRaJdItwfnas7dj79wZ66+m6bxE536X5hkWzpKPJRpmHq3MaU09XGRiTMxLRtlt/y8dOZcnhk/1ru3eZeY6hyw2lSBPjJlMEvw+s4yblIQYWTe/q8Cep6siOLd4cKP0X7oBKJVMSY6lbdM0VwtbB/2tsDxLYgE36LJEUSDibw0pf6j3Us3umF0ekKlbYU1LQ4ki2jbePVECMLx+Z3SxaDIWjMaN/badoPplEZPvyhe0fh32tHJ3TjpaG6zeWKE9zoUO9dqA58H7w63HwkAENPf5Nh/cLZM0k7A== 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=VRojpQvBx+iF52LoHHY3t0FdvYeuZpyni0rHl4Auo4M=; b=TJK4t2ADE9eEMxEnBzbl5s+xUz60TNuRv9l2lx3fhcaCLFbZLJIzRyB+im1igPxR8hCMiVV3Kja1qyUEpa1xPmEwdBe2VvbhJ2cHn8pUHyWlvd8zNMd3uh192EORz6/aH2YkLyNLxKFmdJY/g6p6jzwOXiwbhAHl8CC1HDWxQZ4T1aKTkCYMTtXmdKmQizhPPAbw90ZIEj9K0RRGHR3ZOKXsGLgQPzr+U7EAP/lvHjmD7Ay+DriDWERHhCZgbhM+jzgpf1VMCqhn7KRz0CilJFbuoWVtP5RoJNbqglxAe118CPtXSzxOGvKymZqCkpu+++rv8e8mBZQq8E/fDUIXNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VRojpQvBx+iF52LoHHY3t0FdvYeuZpyni0rHl4Auo4M=; b=0HhR2MVjfUo7Oye9+BwfQ3Tcxl/UJdUC3K2ukpQOFr4viNVD56uDUGkco7wJYHnJObJGdRDo+5viq308Lan2E9QwOrDX9TukTncxbB2WvaVqzHVWMJRnAOI5lOU9aoL/fDRGU0FgM2O+mUE67RsLrhFLCFsELrCV4NQHUk2i8Y0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CH3PR12MB7500.namprd12.prod.outlook.com (2603:10b6:610:148::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 19 Jan 2023 09:09:50 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a%8]) with mapi id 15.20.6002.024; Thu, 19 Jan 2023 09:09:50 +0000 Message-ID: Date: Thu, 19 Jan 2023 09:09:44 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] net/nfp: check whether the generated VF can be used Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Peng Zhang References: <20221209013512.34630-1-chaoyong.he@corigine.com> From: Ferruh Yigit In-Reply-To: <20221209013512.34630-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0099.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::15) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH3PR12MB7500:EE_ X-MS-Office365-Filtering-Correlation-Id: 3956370e-1122-4ca1-3f9a-08daf9fceb28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5/9C6o+PC412l5tqSspxirvPYoQgv6kvHyLXZLE/Vgod+kRe5T3sVY49JnPzaMyXk3MGCQ/frjhaHh3sRAbyz//YB4FaR4niANbHG05G9QP51KZTyyvOBs/TuCa/7AYF51CYExbT9jfDY7Kmu8vCVOFMTgrBarDwSLAIs71H3JDglOv7an3Pcc+uWN5Ei9j7DveUqZv7CIosXrJnRdE8/jyIbOEJZAXBSAKKjyOLHrVcrL8CHpzQgwdGGHVfET2zc1Ssej8cMSe4648DkG7nnsM095r1c+uJBG6JBGoEbv5tZ4jdUzMzsEnAL5IGloNnqWEGfkaT6gty6M4VdJ0fIxfVktADhUc1outr4OJI9F009gd2Qndo5rTEeMvfJZ2jQ3dZvjpS429Jv8uVKcSXTBz5GtPL6FkUN8p3zWC3ybCk6Nv5TFFDIExfoab0Pg0o4iD3MjR1kPZqLGNEt8EaYevTBMqNHjxNBft3LaqGBGu+Tqfql27H3A7sVkqu8YuCDfxrhJL2tGf+udLJXBTNzq6i4rgFy2lU4lsnFhtXJGcbQwiTz7GgbAyX0NlKryY8xV0ZYBsigtqkT9Gw2PSPqFD6NWmcy2rFWNn9NFH5m5pgowPxUcJ45Ysqvxhzz3CE7ovbRw0+qhOQCXg6flcq1LBdOWC+XzTUHhB8dlJBKW2amrC2kOI9rvtueHr2MaK1rY6QzrnhEfv1OCoesfLhAztYWeKjwVdS3S9pIo0Itbg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(366004)(346002)(376002)(396003)(39860400002)(451199015)(36756003)(86362001)(31696002)(6512007)(44832011)(6486002)(4744005)(8936002)(38100700002)(5660300002)(41300700001)(478600001)(66476007)(4326008)(316002)(8676002)(66946007)(66556008)(2906002)(2616005)(53546011)(186003)(6666004)(26005)(6506007)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ajZhWW5XU3dXMzZpVm92L1VOZmtyT0dUc202eTVtODlxczBTbkg4SGFGM0xs?= =?utf-8?B?MStBSXU4S3FqTTZMcmc2QlZpazNZOHhHVnlVTG8zWUFVVmN4Z0hTSHdEekRH?= =?utf-8?B?eE5KZGxOeVZ2eXdpdG9uc1R5WjRxTWo1L3VTRGN6d0JDTGdiRVFxNUE2dDE4?= =?utf-8?B?WDhXUVFONGk5dWpHUVVKUTk0Ym9qZjNUdHNINXE2Zk9wZXdiUmI5SEFiWjky?= =?utf-8?B?TnFkTkVPT09tZ1lITHNHdXlxRmxDVkpzVnZrT1RZNlVkVWhiUlgwZWlMbWZ2?= =?utf-8?B?cnBFaGpMaE93RWpuR1RMbGVNODJDUmxCVE12NXY1TkJiNEJ6b1ZWWnJI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LIbdnX6xhsSjp3N?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3956370e-1122-4ca1-3f9a-08daf9fceb28 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 09:09:50.1672 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OxF4axQzFQcmjdOp/P1knERMk4RdoDkOtTLZlTdZbJY+RW544zMRKlYGv9R/N00p X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7500 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 On 12/9/2022 1:35 AM, Chaoyong He wrote: > From: Peng Zhang > > All the queue pairs are shared between VF and PF for NFP, > and there exist different assignment policy for different > firmware application. > > The user can create VFs up to the max number of queue pairs, > which will cause the last few VFs has no queue pairs and > cannot be used, because PF must occupy some queue pairs by > default. > > This commit add check to prevent this kind of VFs be used. > > Signed-off-by: Peng Zhang > Reviewed-by: Niklas Söderlund > Reviewed-by: Chaoyong He Applied to dpdk-next-net/main, thanks.