IB/core: Search GID only for IB link layer
authorParav Pandit <parav@mellanox.com>
Sun, 25 Mar 2018 10:40:22 +0000 (13:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 22:22:12 +0000 (16:22 -0600)
commit22d24f75a19399bd8c4822541c60e853a16a1956
treeb9cc6c59302756816cf9e672479f03aca209a55a
parent4ab7cb4bf362dc3b85fd8ddac3b16949404be96b
IB/core: Search GID only for IB link layer

Even though API is only used by IPoIB driver, its incorrect to refer
RoCE GID table property to search for GID.

Look for only IB link layer to search for the GID.

Fixes: dbb12562f7c2 ("IB/{core, ipoib}: Simplify ib_find_gid to search only for IB link layer")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c