OpenCloudOS-Kernel/drivers/infiniband
Kalesh AP 5032bf57ab RDMA/bnxt_re: Fix the GID table length
[ Upstream commit dc5006cfcf62bea88076a587344ba5e00e66d1c6 ]

GID table length is reported by FW. The gid index which is passed to the
driver during modify_qp/create_ah is restricted by the sgid_index field of
struct ib_global_route.  sgid_index is u8 and the max sgid possible is
256.

Each GID entry in HW will have 2 GID entries in the kernel gid table.  So
we can support twice the gid table size reported by FW. Also, restrict the
max GID to 256 also.

Fixes: 847b97887e ("RDMA/bnxt_re: Restrict the max_gids to 256")
Link: https://patch.msgid.link/r/1728373302-19530-11-git-send-email-selvin.xavier@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: Sasha Levin <sashal@kernel.org>
2024-11-01 01:58:21 +01:00
..
core RDMA/core: Fix ENODEV error for iWARP test over vlan 2024-11-01 01:58:18 +01:00
hw RDMA/bnxt_re: Fix the GID table length 2024-11-01 01:58:21 +01:00
sw RDMA/rxe: Don't set BTH_ACK_MASK for UC or UD QPs 2024-08-03 08:53:59 +02:00
ulp RDMA/srpt: Make slab cache names unique 2024-11-01 01:58:20 +01:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile