]> git.baikalelectronics.ru Git - 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)
commit749babdd95bb7ee59960e40a47e11caf9cf0b298
treec87633b9fb04c6426a8d4ac9e7e0e4bc064396f5
parentb3d7376f367bd40a18ac786fa767097f5af8d5ea
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