From patchwork Wed Nov 6 08:44:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13864140 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 169591DD0C8 for ; Wed, 6 Nov 2024 09:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883930; cv=none; b=bbvDN0YflLtdFz1wpvzruXYdb2YDkb6CFJGu4N3LqXJFO/LGkwKqTfwnXOGbhxGHy5TARj0CkjrYE8tm4EHlppjQdnqzPcC6Dgl2jNTWf3502nzc87A5XR22lpavqf4SgCiNjM7Gb4Rv4PqM+UU+nR6nDzFl++R32x5SBMFMQ4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883930; c=relaxed/simple; bh=nepz5ZEdo7U42poI3ekNVWSS3AoLSObBx0QSfv4+9SU=; h=From:To:Cc:Subject:Date:Message-Id; b=D7Wy+az9O+A5eTthZrKjPqgICA0571Dyk/8vJu1mtbsyKSRPkGiv04N7YFF1Bhmfa/7mB5WrVEa2EHPjAPxCQ4l4DWiQ0nu9jP5h3ONAX2LxlFUGin14dhamEhi9f5HfUWEXXKHPVvo/rSNRSjfVnYYJ3q79deHTC1wl62cPaG8= 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=WQWEifMZ; arc=none smtp.client-ip=209.85.214.175 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="WQWEifMZ" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20c693b68f5so69308685ad.1 for ; Wed, 06 Nov 2024 01:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1730883928; x=1731488728; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bbrUdx8AnWYClHmA8SZJJAgOkHFthT0yMRum0EFAWWU=; b=WQWEifMZAyvr0fACziGJmvtBlXNJhAe641lf2Ek1wa/p+oBFScEHjQ/Nv1l2IHYj/u 5xQvSFBZMvAZlfhWIhh19Oup4uWjJv6zmBSoZAYwj/OvQeDg9F/3Q/N5jbku5nkPAYn6 f4L/Zc1EdLKXxHgGllWD/XO+8HKUwbKqGRV9Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730883928; x=1731488728; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bbrUdx8AnWYClHmA8SZJJAgOkHFthT0yMRum0EFAWWU=; b=B03M4IhmNsoJXDmwNkkwHYKwTut9A9qgHkbatueq7eOEGHkClfc6NeG3uazQxwoTap LCDfJ2kmCocbMnBafMkpDTd+1VSP6G4/+5fBQAKJy2Rpm/tAijx86Ryl73HcaxN6gghI Gf32Xh1OkQckkbQDohRz1yRgjYmWhYFEyJu50ZvgyEy481jK/lvMY5PdvYGWAxNLTjBs 4LEXekLqjlrv79JL+LQf984QCxWY3wnaY3qjryyn5j80arH3ZaM55Uypm9mW/PQoZqG6 vsatT450gCNmBnC7oYTrMupiq6PuykVkwpSKLQTKQjVeudO8l/ClguHCJ2/wf/EK9/7h U0VQ== X-Forwarded-Encrypted: i=1; AJvYcCUlDVE5ossd4PISzr6yw+D3ReOoLaSbl6MtI8Lb/U5cZtqWSBCFMpjgr7dHfEKHgSBNUOG/jEE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3QhzvOUrtqJRGVj64/3X8dy83WevCfe0sGp9yCMKJsNxw58CU 0a0IuT8YHWtzR7ZX+sPJnXTL2w4XgzPVdSbAge+rKbiJJ8AEAaHcPm2N41HPrw== X-Google-Smtp-Source: AGHT+IHopMnnXO+cdpbLI9vGPVwp6EWwYiJV3p8sX3ArHhRCkLhHNOzjZV/7Zu/AZzSXud8pQ3wizw== X-Received: by 2002:a17:902:f707:b0:20c:f261:2516 with SMTP id d9443c01a7336-21103aaa000mr338769645ad.8.1730883928370; Wed, 06 Nov 2024 01:05:28 -0800 (PST) Received: from sxavier-dev.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211057084casm91715395ad.92.2024.11.06.01.05.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2024 01:05:27 -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 v2 0/3] bnxt: Enhance the resource distribution for RoCE VFs Date: Wed, 6 Nov 2024 00:44:33 -0800 Message-Id: <1730882676-24434-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, RoCE driver will continue to distribute the resources across the total number of VFs. Please review and apply. Thanks, Selvin Xavier v1 -> v2: Updated the commit message of patch 1 of the series 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(-)