From patchwork Wed Oct 19 14:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 13011847 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49A28C433FE for ; Wed, 19 Oct 2022 14:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231504AbiJSO1N (ORCPT ); Wed, 19 Oct 2022 10:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231408AbiJSO0p (ORCPT ); Wed, 19 Oct 2022 10:26:45 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on20714.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8b::714]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F3CB17A02D for ; Wed, 19 Oct 2022 07:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bLC9QRbDRKe9UhEoH3hOJ8FRnSZhZg+nwoYp+jA6jg8QhuJQr6Krw6Eqiow+Q0BnUuBeP+6t6J70SfLpEmWPUYZcgBW535XZv761lOd9L2bxqB/fRDG2ZzkvVDg3u4Z3kcLkn4ooTBT/JH9TcUibDGbJMgISZhb754TqazcKLn+iGweBLyp/nSEsN+Dm/40TjwN39ki2OC23Zk5J09LFyl8mD6I/r/R8Ps8fBFHBDdaat52ygw/tI8zn4RnvXRTcXpWfKCW7wOQB92tx0zIMuhiW5UIIqWWPPK0fvoOgB+49tmRKIqOsjSsPrT52PgkeeNSS4HL1W4IJ7XNXgJp/RA== 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=q4ICoY4aauXSeeYS/sm2CgMpnWiWYnSlTR3rQlxk7Tk=; b=FOwv+MZgSV5VvJ43WQZZsfYQGcgzsxs7p9AyEKx80UItXNfkppzaph6Bw4h/MxlPvuWkTkPjcfRVkVylF8pM03TTs35nRjDa03yZbKbJgWQiRdbqiRjvIQ7pal7vXMkFbBqLQClozJvRHhNBuwhkjbda89Y0yY7owLc9+SHtrEC9iYGDGmtZaDa6GsbOAA+DFXJiWLtgfljhLk/ZpRkshBuTvh0nW4xHGeElcOJzIfxGRKj9/TJ6YSwmgwvPW8uR2dYHLLvqwmbzyPmPDTJWFUgfBlrriFb5CGX1FFWEGk7z4QGoGIA1vQB2uk1g7SVsRDxbM1tAZmtKSMyMWw5Vtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q4ICoY4aauXSeeYS/sm2CgMpnWiWYnSlTR3rQlxk7Tk=; b=aKh0BOCtMLY0gLfLUB6xeAf3EXuOCrpy2MI/9IyBQzUL9W140aMQEVFsWWBayKzi00YyW86ac1X9av4Wwxn3bg1GKXUdDH2DHJW61xxoAZZnPeKRrDHhHjAXch8k8q01/hDA9QGwi7OzbvTfLQnMclhcj9kdRwIyXk/6FWjpc7M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by BL0PR13MB4404.namprd13.prod.outlook.com (2603:10b6:208:1c9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20; Wed, 19 Oct 2022 14:10:18 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::3a35:112e:34eb:6161]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::3a35:112e:34eb:6161%6]) with mapi id 15.20.5746.016; Wed, 19 Oct 2022 14:10:18 +0000 From: Simon Horman To: David Miller , Jakub Kicinski , Paolo Abeni Cc: Michael Chan , Andy Gospodarek , Gal Pressman , Saeed Mahameed , Jesse Brandeburg , Tony Nguyen , Edward Cree , Vladimir Oltean , Andrew Lunn , Peng Zhang , netdev@vger.kernel.org, oss-drivers@corigine.com Subject: [PATCH net-next 0/3] nfp: support VF multi-queues configuration Date: Wed, 19 Oct 2022 16:09:40 +0200 Message-Id: <20221019140943.18851-1-simon.horman@corigine.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: AS4P250CA0008.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::9) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|BL0PR13MB4404:EE_ X-MS-Office365-Filtering-Correlation-Id: 84bc7631-21f5-499d-70ec-08dab1dba6d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kkijcg6nhVRSd6cMtsHxGKvuK+DMRRhZSeBbiPVxjIzRBbINvoCtnpk4bpEXT3YBTMlDh3Gt1ffbp+Cn7j3T6azuA2d3bhLT2KMKRKB53HuthYLRw7Ds3iF04WBaAi0nkiyUgGOhlbA9vJvB+WJx763i4itEZ6gMP92qeU9Vf/RH62JUNwYjA/QAYRYVDKWvK+98J4HRd0soZtMxirnjAwN9JDfGS5vt0nZPyJ+YL6rgey4HNk+RmnnBNcE1Ua/ES737FMv05xwB4hQIIVzEd07W/sNYVbufkSzRAPVc8AOVojYtphuPzP77fygYz4ZpUCWUeWx++xrGseR+i3pRqKM31bM63ofze8uMe6ZMTapuqhAKZKZpU6sYqrxfWaQw5hkT3AvXeIymI36yECifjjr9Yjapbk1VljMunpatB97Jm25RakMeeHi3nQuxJg+p2Y7Pxxnv1yLo7Hx5TQBtJWU41zpfoQA486QPtcZUPYdPgJbzu4rMx2aWGQpfAY9uRdaL6ZnuYJ8yRN158lYpWiGmK2WN06oPAQ6IYyUiO2NiUS4Hgw70uh6LXJnc3JNyJrHGm2ODkz0xS3aaOhE06bmaWok/+SDt5ds0tZmjxoGJOa7aYiiWxaS5sZ4nXjP+iWq3codifNub3vFx1rKURPQcqqDcPNZnIV6ogGSCIcJUKRJpgEM5eXscdnfnqOgM1F3xyeajoSpgcf6hi2vjpOEqHECyKSSTGCD5NStinEO6UTSHTMPW6JKK8CkwfarQ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(39830400003)(366004)(346002)(376002)(396003)(451199015)(1076003)(4326008)(66556008)(41300700001)(66476007)(7416002)(5660300002)(6506007)(2906002)(8936002)(52116002)(2616005)(6512007)(6666004)(107886003)(186003)(44832011)(86362001)(36756003)(8676002)(66946007)(6486002)(478600001)(110136005)(38100700002)(54906003)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P+aWytosOnEh+U2JlTrJ8cNdQCK8SML5BXHPXvoXSjb33oWu3tKlC3po378n+bYxiRbSmY9+WQ53+fQcXCBEmq2zK2nGPBHr2GBPXMv+5z/QlAdBr49EUd3oLqyRYOzl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3J1fjrU/OCBk0rYAHXkOLuN+74smZhn5+Bktbilj+6Vw1j/uwMPbGX1RuyENu0U6DosI9snHWrSsl9kyOxebxalHlu9ylbM7wTcRDkb5zidW1JTLz13cXQuUf3R8g4We20LmzsxR8FsBjWXt+xybfJRa3Ipj+c48dgh8bL5Mbqa5DNE++2ekd+ME4pCId9mL+ovLs7rVSL1nELwUFg4+l+dwfiLrTPVOvXjpsm4ZnpuGQbp9PV5tyYmChgcYPZ8NFAXDbLCu8uvSJ+n5+tfA53/BujFtqNYm5NuEfvW1he7KKyp8I82GYn8i1tlND3WvdmhckVoBU/EYD+V1Ti1oOFZWn4H9kygjQqIgRfpVleGBeaUOAMNcED6s44ZxoJJyFNmYFfVJda0HdJo8LULRsZfxbEtsBJN99h2Mszwp0zWW3J+q1sm0Wp9Q6KgouuktKOnSpnvV06UI5FRLLHNJYlFuqC7FNdA== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84bc7631-21f5-499d-70ec-08dab1dba6d4 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 14:10:18.4365 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rTzzVi8ZsDFvFilOQXGphDR6YHCDZOpSyxwQe1GjPc/gW0lXU0u+pQbKeMnTIweDvJa2UOknaMG/cI40DyGJUSIJli3x0NwAFUVoF0BcfdA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR13MB4404 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi, this short series adds the max_vf_queue generic devlink device parameter, the intention of this is to allow configuration of the number of queues associated with VFs, and facilitates having VFs with different queue counts. The series also adds support for multi-queue VFs to the nfp driver and support for the max_vf_queue feature described above. Diana Wang (1): nfp: support VF multi-queues configuration Peng Zhang (2): devlink: Add new "max_vf_queue" generic device param nfp: devlink: add the devlink parameter "max_vf_queue" support .../networking/devlink/devlink-params.rst | 5 + Documentation/networking/devlink/nfp.rst | 2 + .../ethernet/netronome/nfp/devlink_param.c | 114 ++++++++++++++++++ drivers/net/ethernet/netronome/nfp/nfp_main.c | 6 + drivers/net/ethernet/netronome/nfp/nfp_main.h | 13 ++ drivers/net/ethernet/netronome/nfp/nfp_net.h | 1 + .../net/ethernet/netronome/nfp/nfp_net_main.c | 3 + .../ethernet/netronome/nfp/nfp_net_sriov.c | 101 ++++++++++++++++ .../ethernet/netronome/nfp/nfp_net_sriov.h | 3 + include/net/devlink.h | 4 + net/core/devlink.c | 5 + 11 files changed, 257 insertions(+)