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
@@ -1209,8 +1209,10 @@ struct net_device_ops {
|
||||
netdev_features_t features);
|
||||
int (*ndo_set_features)(struct net_device *dev,
|
||||
netdev_features_t features);
|
||||
int (*ndo_neigh_construct)(struct neighbour *n);
|
||||
void (*ndo_neigh_destroy)(struct neighbour *n);
|
||||
int (*ndo_neigh_construct)(struct net_device *dev,
|
||||
struct neighbour *n);
|
||||
void (*ndo_neigh_destroy)(struct net_device *dev,
|
||||
struct neighbour *n);
|
||||
|
||||
int (*ndo_fdb_add)(struct ndmsg *ndm,
|
||||
struct nlattr *tb[],
|
||||
|
Reference in New Issue
Block a user