net: add dev arg to ndo_neigh_construct/destroy
As the following patch will allow upper devices to follow the call down lower devices, we need to add dev here and not rely on n->dev. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9046a745e2
commit
503eebc265
@@ -1996,7 +1996,8 @@ static int rocker_port_change_proto_down(struct net_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rocker_port_neigh_destroy(struct neighbour *n)
|
||||
static void rocker_port_neigh_destroy(struct net_device *dev,
|
||||
struct neighbour *n)
|
||||
{
|
||||
struct rocker_port *rocker_port = netdev_priv(n->dev);
|
||||
int err;
|
||||
|
Reference in New Issue
Block a user