IB/{core, ipoib}: Simplify ib_find_gid() for unused ndev
authorParav Pandit <parav@mellanox.com>
Tue, 13 Mar 2018 14:06:12 +0000 (16:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 20:40:37 +0000 (14:40 -0600)
commitb26c4a1138dff34cff507bafa4c87e365f4145a6
treed93c9b5c29b6ae4775c15e79d49f26f6989bd582
parent6612b4983f7e8d295a7503452719b113464b395f
IB/{core, ipoib}: Simplify ib_find_gid() for unused ndev

ib_find_gid() is only used by IPoIB driver. For IB link layer, GID table
entries are not based on netdevice. Netdevice parameter is unused here.
Therefore, it is removed.

Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
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