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>
This commit is contained in:

committed by
Jason Gunthorpe

parent
5092d17a39
commit
dbb12562f7
@@ -2836,8 +2836,7 @@ int ib_modify_port(struct ib_device *device,
|
||||
struct ib_port_modify *port_modify);
|
||||
|
||||
int ib_find_gid(struct ib_device *device, union ib_gid *gid,
|
||||
enum ib_gid_type gid_type, struct net_device *ndev,
|
||||
u8 *port_num, u16 *index);
|
||||
struct net_device *ndev, u8 *port_num, u16 *index);
|
||||
|
||||
int ib_find_pkey(struct ib_device *device,
|
||||
u8 port_num, u16 pkey, u16 *index);
|
||||
|
Reference in New Issue
Block a user