diff options
author | 2021-11-15 11:15:19 +0100 | |
---|---|---|
committer | 2021-11-17 16:45:16 -0400 | |
commit | 378c67413de18b69fb3bb78d8c4f0f1192cfa973 (patch) | |
tree | 28e1934c82d9b7a6e86c874896ae0bc0e6d35e28 /scripts/gdb/linux/utils.py | |
parent | IB/hfi1: Properly allocate rdma counter desc memory (diff) | |
download | wireguard-linux-378c67413de18b69fb3bb78d8c4f0f1192cfa973.tar.xz wireguard-linux-378c67413de18b69fb3bb78d8c4f0f1192cfa973.zip |
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: 4b5f4d3fb408 ("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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions