From patchwork Tue Sep 20 15:14:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 12982353 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 1F866C54EE9 for ; Tue, 20 Sep 2022 15:15:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbiITPPj (ORCPT ); Tue, 20 Sep 2022 11:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiITPPa (ORCPT ); Tue, 20 Sep 2022 11:15:30 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2125.outbound.protection.outlook.com [40.107.100.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90485A835 for ; Tue, 20 Sep 2022 08:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PAl0HZYbOTfj0jF079Y7tmXnBqpDko7owaSIJZqLDM+fmJWRwSx9/nJ6n502vpqK/l1mIBl0DVXI53ekR830ZDttcxw7QNnD3WWkhWpD7nrpNF9k1qVShvXdq9TCvJn12Zne54c+CXI3Z0W0nvlb+VFwTL9JggcOQL+mD25/oLvkeKuVZYdfafMBlHTJuS/+51oj94xzjBvzhAKto7fLkJePNwFziC5uMaTSWyskj6uniILPNgeZl9y35ZDsL5C6HRecD+qcO/CQ9UgHNuLXzUkyVxtrlJC1oxYkf1pSXW48YvTcyDVh97hjQKIB2ScSYIZFAXAqyBgoc7B6Jy4KyQ== 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=kXAGlB3XRcHxHbxo00l8iW0WQoGhZlcFW3hjZPrsI2zsrEpRbYoWkfnOk/eWioPlgtCUqRg6IMNHC9TEt08Y381P+j94TfUaqIbYClGjQpv09Q+QsI5B5Y7b0epRwQ9voFhpLn0wBJvzIzTyVBHg9kiNduJAWveFWzO9voeJ1RErHbLPLRbNjYbnWu2OxYPLYtHef9+O0oH8wVHMiS44navGHk7rAUj9nmbggqy5QVj9IrZY76qL2JNBoztoRBCTNGKnf3A+Lobj7nNT4zCEW+BjRK3ib0EOGHLES8iEILmFW9+YIzuXqTweGUJCeSICdZVEDujG6tSD0ODvvvUcSA== 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=bGNWk5R/VpO5BK+KYJdXJAR7C4OyYhpTwE/99UHgdfe2wfrxWiEQuJE1fzaeTQdHSL/Ehp0BeQOYMypxdFMzTM0OvrwtxBTVRreHzm1T7Mkj7XDwQCMfMxUOlo6fycxejXrK1pe0kg6CVWkCiKL54U/aov7EvUybymQJm1E+l+A= 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 SJ0PR13MB5301.namprd13.prod.outlook.com (2603:10b6:a03:3d9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14; Tue, 20 Sep 2022 15:15:21 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::2cbf:e4b1:5bbf:3e54]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::2cbf:e4b1:5bbf:3e54%4]) with mapi id 15.20.5654.014; Tue, 20 Sep 2022 15:15:21 +0000 From: Simon Horman To: David Miller , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, oss-drivers@corigine.com, Diana Wang , Peng Zhang Subject: [PATCH/RFC net-next 0/3] nfp: support VF multi-queues configuration Date: Tue, 20 Sep 2022 16:14:16 +0100 Message-Id: <20220920151419.76050-1-simon.horman@corigine.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: AM3PR07CA0064.eurprd07.prod.outlook.com (2603:10a6:207:4::22) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|SJ0PR13MB5301:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c74b0fc-e254-46b1-3901-08da9b1aef35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yYXuQp5mlJV7xyzAW+dBIr7vXQVSvJuzxnVM2r3WlvTPEWfSVogGansn9rUP6ZMrjNw3XQEHmfimgZ3GEJgPUQ3GLtI3VSIQ9V5W/sIfoEn+XPRKyDo7zEr4cPPXBatZ1McHhrfjscd8HGD3eENKxtozKzoqsCHMp0jHGNWceHSgTjepi1gVIGbkJoU9gK7PI3Koz40K8s7i1/jngDRUypE5hs037EJ3wqebtDU0TdF2dvl1ddlPSfavgVc5u37iNIFbf3EV6PNqDBLJ5o3vFHylTlNNHctk4fPKhYhxP7yeDMOkWrbXYIreIGQ0OJZsYE8nli+aWtTR5d7HArLkJnas2QSF1apgjgC8e602mHiGrFocKVE1PubBQhFsf609z1Wy0ZrHRAH5wnAdzFCRg57EHnj3+n6FloAUxTFYHSsOyqtfOuLDd8O/RqNDKTGQSb3hSaqQLaIBMcavebrDg10JMp2vbIk765d66h2IPfAEI1GbwxV+il+dgcbBMB5X4xj6IKTTdfsD9khozlMgtNY9AxHGxZVlvwsvu2Bv3YmUg+cHklbctGtFkD1Ynfxq+RP0Kxl5WJBqdhG8MWcv35HNG4wI8jY9GWCsOF4BF70Nuih7bP/CaXVyn4B3GAijdkj5juGPLLFwTcqc4Lies9Xox0X+lTZFyXFZyQmBZp+eLmEyMZrx1JJUbDgN4vv7yOmIxIPn/nB9sAxHTivTJA== 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)(396003)(366004)(39840400004)(346002)(136003)(376002)(451199015)(6486002)(478600001)(186003)(1076003)(2616005)(6506007)(6512007)(6666004)(107886003)(52116002)(2906002)(44832011)(8936002)(36756003)(5660300002)(110136005)(54906003)(316002)(4326008)(8676002)(41300700001)(86362001)(66476007)(66556008)(66946007)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q6K0ZgvhBYKQnyWnI2EZN58ZRGB4qnHwnU7wr+nudxCR08l6EWGwnUS7aJK7a5E1XNGThs5FHADmlUbU/UgjVcyshRC00+GetCZ9b/S0JGpUWKk6BmE3YkTlujGTOrV7bBSfdwVp//60TLf2saUJhyM31s0jtgXiqf6kNrcY6DwtnTjPZfu4GrcvMw8btohX96BXNYV2d6fwZduOiB8/a0ULpuighx88emFhJZ1HNylr0ZVEzSlR7aDJIaWOAvAUZaIA9AQy+HTGcnu3f4D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e3Jh4o66cY5zqSW7zSk/3xM9kDsozoMOX0j91Vf12vtNHIPWXpS6e0IXfW5yswUusaKsv+OCy1NmJbzwdXJjpYlGrN7PS7xB8MKFMI92G2ynlaqBoM4D/1kkI3nj6IRjL4+80ZOfbCgQQahgcpEF0wpDIyM9+0UYQNHi3UMvrpiH6irLNtUGy+sA+f0O/kbx5YKKvFixH0Xdpp3kirxthBLGSA23NQKHvMR2z4PQT+n62x27oD4s+EmRTpSFOgi0k1vJa6WaHdtijV2QCdBwpphn88vDeHmdKxodTxp0uAxuX4Sz2ADsNM4ez+ZrHzzof8zu95g== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c74b0fc-e254-46b1-3901-08da9b1aef35 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2022 15:15:21.4949 (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: Po9kf3eXlQIL+nqepsrzUZJBh/kI0VlDMuoSq8Qjh6zZm77KQfW0xr+94K7fDwokDpk7xDtuVbhLB3w4BdKQM4FPWC6tBWijvray7Ox3qnM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5301 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC 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(+)