]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Fix inaccurate constants in rxe_type_info
authorDaisuke Matsuda <matsuda-daisuke@fujitsu.com>
Tue, 20 Dec 2022 08:08:47 +0000 (17:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:06 +0000 (08:34 +0100)
commit58b58f1564bb2ab612f5c3de62d9f1d0b86e429a
treee411956fe105ce19b19fc84c0506217b0c0665f3
parent25078f224854ab5ce254afc0036823d0fae8b6dc
RDMA/rxe: Fix inaccurate constants in rxe_type_info

[ Upstream commit 3a73746b267e5c6a87c9ad26f8c6a48e44da609c ]

ibv_query_device() has reported incorrect device attributes, which are
actually not used by the device. Make the constants correspond with the
attributes shown to users.

Fixes: 75a4163227f4 ("RDMA/rxe: Move max_elem into rxe_type_info")
Fixes: af4a54e9581e ("RDMA/rxe: Replace red-black trees by xarrays")
Link: https://lore.kernel.org/r/20221220080848.253785-1-matsuda-daisuke@fujitsu.com
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_pool.c