net: add possibility to pass information about upper device via notifier

Sometimes the drivers and other code would find it handy to know some
internal information about upper device being changed. So allow upper-code
to pass information down to notifier listeners during linking.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jiri Pirko
2015-12-03 12:12:11 +01:00
committed by David S. Miller
vanhempi 6dffb0447c
commit 29bf24afb2
8 muutettua tiedostoa jossa 15 lisäystä ja 11 poistoa

Näytä tiedosto

@@ -1204,7 +1204,7 @@ static int bond_master_upper_dev_link(struct net_device *bond_dev,
{
int err;
err = netdev_master_upper_dev_link(slave_dev, bond_dev, slave);
err = netdev_master_upper_dev_link(slave_dev, bond_dev, slave, NULL);
if (err)
return err;
slave_dev->flags |= IFF_SLAVE;