]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/{core, ipoib}: Simplify ib_find_gid to search only for IB link layer
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:12 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:10 +0000 (15:37 -0700)
commitdbb12562f7c2377c210ed6b2e79eda5bfe23c30c
treec87633b9fb04c6426a8d4ac9e7e0e4bc064396f5
parent5092d17a39a454d8b045a8cdce514bf4b07d22dc
IB/{core, ipoib}: Simplify ib_find_gid to search only for IB link layer

Currently there are no users of ib_find_gid for RoCE transport. It is
only used by IPoIB.
Therefore its simplified to ignore RoCE ports and GID type check which
was previously done for every port.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
include/rdma/ib_verbs.h