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

committed by
Jason Gunthorpe

parent
6612b4983f
commit
b26c4a1138
@@ -1085,7 +1085,7 @@ static bool ipoib_dev_addr_changed_valid(struct ipoib_dev_priv *priv)
|
||||
|
||||
netif_addr_unlock_bh(priv->dev);
|
||||
|
||||
err = ib_find_gid(priv->ca, &search_gid, priv->dev, &port, &index);
|
||||
err = ib_find_gid(priv->ca, &search_gid, &port, &index);
|
||||
|
||||
netif_addr_lock_bh(priv->dev);
|
||||
|
||||
|
Reference in New Issue
Block a user