RDMA/bnxt_re: Remove the sriov config callback
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 6 Dec 2022 21:29:46 +0000 (13:29 -0800)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 2 Feb 2023 03:02:18 +0000 (19:02 -0800)
commita43c26fa2e6ca724360927856c326ebd3247b843
treef761ce3ee3f71b7b3c2fb85b1c4d8e9991c34139
parent848dc857c8dee61972abdb05ce81f12f0d0e05e4
RDMA/bnxt_re: Remove the sriov config callback

Remove the SRIOV config callback which the bnxt_en was calling
to reconfigure the chip resources for a PF device when VFs are
created. The code is now modified to provision the VF resources
based on the total VF count instead of the actual VF count.
This allows the SRIOV config callback to be removed from the
list of ulp_ops.

Suggested-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h