]> 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)
commit5bb0447312a52056bafc14d896b082069c3d2f3a
treee411956fe105ce19b19fc84c0506217b0c0665f3
parent18237b19dd3ad9efa1a0f39fa9141a10e91f8d5a
RDMA/rxe: Fix inaccurate constants in rxe_type_info

[ Upstream commit ce8977b74224e9c4b3748c28010ac47092e8af55 ]

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: b0d4f9ab9a11 ("RDMA/rxe: Move max_elem into rxe_type_info")
Fixes: 651212e49ede ("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