OpenCloudOS-Kernel/drivers/infiniband/hw/bnxt_re
Jack Wang 08e4d9209a bnxt_re: Fix imm_data endianness
[ Upstream commit 95b087f87b780daafad1dbb2c84e81b729d5d33f ]

When map a device between servers with MLX and BCM RoCE nics, RTRS
server complain about unknown imm type, and can't map the device,

After more debug, it seems bnxt_re wrongly handle the
imm_data, this patch fixed the compat issue with MLX for us.

In off list discussion, Selvin confirmed HW is working in little endian format
and all data needs to be converted to LE while providing.

This patch fix the endianness for imm_data

Fixes: 1ac5a40479 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20240710122102.37569-1-jinpu.wang@ionos.com
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:54:04 +02:00
..
Kconfig RDMA/bnxt_re: Depend on bnxt ethernet driver and not blindly select it 2021-04-19 14:57:03 -03:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
bnxt_re.h RDMA/bnxt_re: Fix the max msix vectors macro 2024-06-27 13:49:08 +02:00
hw_counters.c bnxt_re: Update the debug counters for doorbell pacing 2023-07-30 14:37:04 +03:00
hw_counters.h bnxt_re: Update the debug counters for doorbell pacing 2023-07-30 14:37:04 +03:00
ib_verbs.c bnxt_re: Fix imm_data endianness 2024-08-03 08:54:04 +02:00
ib_verbs.h RDMA/bnxt_re: Remove roundup_pow_of_two depth for all hardware queue resources 2024-06-12 11:12:10 +02:00
main.c RDMA/bnxt_re: Correct module description string 2023-12-13 18:45:14 +01:00
qplib_fp.c bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq 2024-06-12 11:12:10 +02:00
qplib_fp.h bnxt_re: Fix imm_data endianness 2024-08-03 08:54:04 +02:00
qplib_rcfw.c RDMA/bnxt_re: Fix the sparse warnings 2024-06-12 11:13:02 +02:00
qplib_rcfw.h RDMA/bnxt_re: Refactor the queue index update 2024-06-12 11:12:10 +02:00
qplib_res.c RDMA/bnxt_re: Refactor the queue index update 2024-06-12 11:12:10 +02:00
qplib_res.h RDMA/bnxt_re: Adds MSN table capability for Gen P7 adapters 2024-06-12 11:12:10 +02:00
qplib_sp.c RDMA/bnxt_re: Remove unnecessary variable initializations 2023-08-07 16:39:42 +03:00
qplib_sp.h RDMA/bnxt_re: Fix max_qp count for virtual functions 2023-08-07 16:39:42 +03:00
qplib_tlv.h RDMA/bnxt_re: RoCE slow path TLV support 2023-04-04 09:17:21 +03:00
roce_hsi.h RDMA/bnxt_re: Update the HW interface definitions 2024-06-12 11:12:10 +02:00