From patchwork Tue Nov 5 09:59:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13862750 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F88418BC21 for ; Tue, 5 Nov 2024 10:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730802015; cv=none; b=g+MTcVpDJXX32m6Fhf+Xi0M+MS2xR+4y8PSdIJ0qGKxcPPFK9oYFCcXhsPPhZgv/zjPQS6kUrW0BINSDEsldL6sP4gDE+tcUrlg8BRhei+Rhrpv7RvgMoICrxhw/oMLiWJdzT/bpdg+yfnNuVsCtqt5UN/yFeEdSuOTiDrRlliE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730802015; c=relaxed/simple; bh=6nw6ijKpq+gJsxL4Ty2fRH6JptU2ieialFH3jNp6qvY=; h=From:To:Cc:Subject:Date:Message-Id; b=J2joF3UOl8URTTJ7W4E6e0q0i93yHdaoYIssD5/w2KZYV66oFYgQd/JJhvUaFqJ+VPmw2Rbb6gVkWToQlkwDTNyOCufOMYYjOLqIIsubjUzAUReE/LlikUgsM3GlEF4A5SCT+goezqXwOHxpc845Qh3o5meA3piPMBIiYr+ErAg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=f5Z8SXhQ; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="f5Z8SXhQ" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-20cd76c513cso40700105ad.3 for ; Tue, 05 Nov 2024 02:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1730802013; x=1731406813; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tl8xPC5nMv+lK8i7s5d0f3zT49bzbVgtjgtDBZtUy+8=; b=f5Z8SXhQUy0Me2GX8uGC9Uf7S5I9/o4WsyNuTXyyY/qhdvSV74KcINehuCWmEfN2RZ 2D5oKGesy0PZScKuur/cwa8uOfKBymMCOl3pSOLbzyKG0bWns2Li/4R1yBeEtAsouiEY Lo7bjNKt9Sr6ayRpPB8aYK7xIpuimCrwnQqgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730802013; x=1731406813; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tl8xPC5nMv+lK8i7s5d0f3zT49bzbVgtjgtDBZtUy+8=; b=weU++XyCnWwGAd7/WYlGxmZtUpNn+dkhulUHmgtzHrAQuT6/4f+cLSyUBHTRdliQNG To5uJPlwbJMdOOXlsXczfgSLlwkM4BPsGG05iXE8MKb0TCicVD3rZSFTQwcgWt9qZy6E Rbztfsma6WHJirrxQatIsIIo1jMDe7J7FKclv0fFUiKbNUMFh3c7Tk9nLNqEEsKOeygu 5Amd0Rgpb6/gqwE6xoGehl8IbKPiUH5SRxGTVUmRI69dE2sCk9IUj2bPVnhXQPUExwAi iLJjUNB0XqB4nnAVhFyrRteS8vm/7lrFrMYBbR6+4OD2hHds8pHKFfX8pu+i0k2upw5u TNHg== X-Forwarded-Encrypted: i=1; AJvYcCW8VvSy8+/Rvy4lpA2G2+mUxOu1Nid9pgTfzlXpp4rYsx8+YU+CFZ6pEElCF2MG/Q2vo7gb5WY=@vger.kernel.org X-Gm-Message-State: AOJu0YxgkpDVYWudwzZ47dckEQBObj963MSo9pgMsWNOh9DKkmdSS41Y 0MYyGRhIAIiFV5m2NJrFKi/vRmBeT8HqudEVjhNu+/BS4KpwJvY7zergx+bBaw== X-Google-Smtp-Source: AGHT+IEfOuBtKJRnI3DvnmykiMzaWZQzR6zk1HTgE5uBwDAMOa4C81xwnTJXzqmndU8xgm1alzn9TA== X-Received: by 2002:a17:902:fb4b:b0:20c:5533:36da with SMTP id d9443c01a7336-210f76d678bmr233553575ad.42.1730802012913; Tue, 05 Nov 2024 02:20:12 -0800 (PST) Received: from sxavier-dev.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21105707132sm75306615ad.96.2024.11.05.02.20.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2024 02:20:12 -0800 (PST) From: Selvin Xavier To: leon@kernel.org, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, michael.chan@broadcom.com, andrew.gospodarek@broadcom.com, kalesh-anakkur.purayil@broadcom.com, Selvin Xavier Subject: [PATCH rdma-next 0/3] bnxt: Enhance the resource distribution for RoCE VFs Date: Tue, 5 Nov 2024 01:59:09 -0800 Message-Id: <1730800752-29925-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Implements the mechanism to distribute the RoCE VF resource based on the active VFs. If the firmware support the feature, NIC driver will distribute the resources for Active VFs. For older Firmware, the driver will continue to distribute the resources across the total number of VFs. Please review and apply. Thanks, Selvin Bhargava Chenna Marreddy (1): RDMA/bnxt_re: Enhance RoCE SRIOV resource configuration design Kalesh AP (1): RDMA/bnxt_re: Add set_func_resources support for P5/P7 adapters Vikas Gupta (1): bnxt_en: Add support for RoCE sriov configuration drivers/infiniband/hw/bnxt_re/main.c | 24 ++++++----- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 13 ++---- drivers/infiniband/hw/bnxt_re/qplib_res.h | 3 ++ drivers/infiniband/hw/bnxt_re/roce_hsi.h | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 +++ drivers/net/ethernet/broadcom/bnxt/bnxt.h | 6 +++ drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | 53 +++++++++++++++++++++++++ drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 + drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 1 + 9 files changed, 89 insertions(+), 20 deletions(-)