linux/drivers/infiniband/hw
Jack Wang 55fa4883aa bnxt_re: Fix imm_data endianness
[ Upstream commit 95b087f87b ]

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:33:34 +02:00
..
bnxt_re bnxt_re: Fix imm_data endianness 2024-08-19 05:33:34 +02:00
cxgb3 RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
cxgb4 RDMA/cxgb4: Check skb value for failure to allocate 2023-10-25 11:53:17 +02:00
efa RDMA/efa: Fix unsupported page sizes in device 2023-06-09 10:28:51 +02:00
hfi1 IB/hfi1: Fix a memleak in init_credit_return 2024-03-01 13:13:36 +01:00
hns RDMA/hns: Use complete parentheses in macros 2024-06-16 13:28:39 +02:00
i40iw RDMA/irdma: Prevent zero-length STAG registration 2023-12-08 08:44:22 +01:00
mlx4 RDMA/mlx4: Fix truncated output warning in alias_GUID.c 2024-08-19 05:33:33 +02:00
mlx5 RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-05-02 16:18:30 +02:00
mthca RDMA/usnic: Silence uninitialized symbol smatch warnings 2024-01-25 14:34:26 -08:00
ocrdma RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd() 2021-01-19 18:26:12 +01:00
qedr RDMA/qedr: clean up work queue on failure in qedr_alloc_resources() 2022-11-10 17:57:50 +01:00
qib IB/qib: Fix memory leak in qib_user_sdma_queue_pkts() 2021-12-29 12:23:34 +01:00
usnic RDMA/usnic: use iommu_map_atomic() under spin_lock() 2023-02-22 12:50:31 +01:00
vmw_pvrdma RDMA/pvrdma: Fix missing kfree() in pvrdma_register_device() 2020-11-24 13:29:05 +01:00
Makefile