kernel_samsung_a53x/drivers/infiniband/hw/bnxt_re
Saravanan Vajravel 6744e02515 RDMA/bnxt_re: Fix incorrect AVID type in WQE structure
[ Upstream commit 9ab20f76ae9fad55ebaf36bdff04aea1c2552374 ]

Driver uses internal data structure to construct WQE frame.
It used avid type as u16 which can accommodate up to 64K AVs.
When outstanding AVID crosses 64K, driver truncates AVID and
hence it uses incorrect AVID to WR. This leads to WR failure
due to invalid AV ID and QP is moved to error state with reason
set to 19 (INVALID AVID). When RDMA CM path is used, this issue
hits QP1 and it is moved to error state

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Link: https://patch.msgid.link/r/1726715161-18941-3-git-send-email-selvin.xavier@broadcom.com
Reviewed-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
Signed-off-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:58 +01:00
..
bnxt_re.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_verbs.c bnxt_re: Fix imm_data endianness 2024-11-23 23:20:11 +01:00
ib_verbs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c RDMA/bnxt_re: Correct module description string 2024-11-18 12:11:41 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_fp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_fp.h RDMA/bnxt_re: Fix incorrect AVID type in WQE structure 2024-11-23 23:21:58 +01:00
qplib_rcfw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_rcfw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_res.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_res.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
roce_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00