WSL2-Linux-Kernel/drivers/infiniband/hw/bnxt_re
Jack Wang 913173f420 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-19 05:45:07 +02:00
..
Kconfig
Makefile
bnxt_re.h
hw_counters.c
hw_counters.h
ib_verbs.c bnxt_re: Fix imm_data endianness 2024-08-19 05:45:07 +02:00
ib_verbs.h
main.c
qplib_fp.c
qplib_fp.h bnxt_re: Fix imm_data endianness 2024-08-19 05:45:07 +02:00
qplib_rcfw.c
qplib_rcfw.h
qplib_res.c
qplib_res.h
qplib_sp.c
qplib_sp.h
roce_hsi.h