]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Add support for RoCE sriov configuration
authorVikas Gupta <vikas.gupta@broadcom.com>
Wed, 6 Nov 2024 08:44:34 +0000 (00:44 -0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 12 Nov 2024 08:04:04 +0000 (03:04 -0500)
commit53371c5c218f9fd5ec18843762a65c686040c574
tree404200c25d3aba27e01e0963606d96f69f04da6b
parent6b526d17eed850352d880b93b9bf20b93006bd92
bnxt_en: Add support for RoCE sriov configuration

During driver load, PF RDMA driver provisions resources
to the RDMA VFs. This logic takes into consideration of
the total number of VFs supported on the PF while
allocating resources. Firmware now advertises a capability
where NIC driver can allocate resources for RDMA VFs when
the user actually creates a VF. So this resource
distribution can be based on the number of active VFs.

This patch adds the support to check for the firmware
capability and follow the new RDMA VF resource allocation
strategy. The current logic in the RDMA driver will be
removed for the newer Firmware versions in a subsequent
patch in this series.

Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Reviewed-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1730882676-24434-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c