linux/drivers/infiniband/hw
Jack Wang 378c67413d RDMA/mlx4: Do not fail the registration on port stats
If the FW doesn't support MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT, mlx4 driver
will fail the ib_setup_port_attrs, which is called from
ib_register_device()/enable_device_and_get(), in the end leads to device
not detected[1][2]

To fix it, add a new mlx4_ib_hw_stats_ops1, w/o alloc_hw_port_stats if FW
does not support MLX4_DEV_CAP_FLAG2_DIAG_PER_PORT.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2014094
[2] https://lore.kernel.org/linux-rdma/CAMGffEn2wvEnmzc0xe=xYiCLqpphiHDBxCxqAELrBofbUAMQxw@mail.gmail.com

Fixes: 4b5f4d3fb4 ("RDMA: Split the alloc_hw_stats() ops to port and device variants")
Link: https://lore.kernel.org/r/20211115101519.27210-1-jinpu.wang@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-11-17 16:45:16 -04:00
..
bnxt_re RDMA/bnxt_re: Remove unsupported bnxt_re_modify_ah callback 2021-11-03 09:06:36 -03:00
cxgb4 RDMA: Remove redundant 'flush_workqueue()' calls 2021-10-12 13:21:23 -03:00
efa RDMA/efa: Add support for dmabuf memory regions 2021-10-28 08:58:26 -03:00
hfi1 IB/hfi1: Properly allocate rdma counter desc memory 2021-11-16 13:18:24 -04:00
hns Merge branch 'for-rc' into rdma.git for-next 2021-11-01 15:08:19 -03:00
irdma Linux 5.15 2021-11-01 14:49:20 -03:00
mlx4 RDMA/mlx4: Do not fail the registration on port stats 2021-11-17 16:45:16 -04:00
mlx5 RDMA v5.16 merge window pull request 2021-11-03 08:05:59 -07:00
mthca RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
ocrdma RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
qedr RDMA v5.16 merge window pull request 2021-11-03 08:05:59 -07:00
qib Linux 5.15 2021-11-01 14:49:20 -03:00
usnic RDMA: Constify netdev->dev_addr accesses 2021-10-25 14:33:09 -03:00
vmw_pvrdma RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00