]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Fix empty gid table for non IB/RoCE devices
authorGal Pressman <galpress@amazon.com>
Sun, 6 Dec 2020 15:32:38 +0000 (17:32 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Dec 2020 20:32:04 +0000 (16:32 -0400)
commit274f05c88510b53772fb596418cab49b6bdbc333
tree33d30660fa11a7560a55508e8bf852e531679094
parent81bdcf9499fa6df2d7593dc753d26b56d8cb6c7f
RDMA/core: Fix empty gid table for non IB/RoCE devices

The query_gid_table ioctl skips non IB/RoCE ports, which as a result
returns an empty gid table for devices such as EFA which have a GID table,
but are not IB/RoCE.

Fixes: e8540435e331 ("RDMA/core: Introduce new GID table query API")
Link: https://lore.kernel.org/r/20201206153238.34878-1-galpress@amazon.com
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cache.c