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:

committed by
David S. Miller

parent
6dffb0447c
commit
29bf24afb2
@@ -1083,7 +1083,7 @@ static int team_upper_dev_link(struct net_device *dev,
|
||||
{
|
||||
int err;
|
||||
|
||||
err = netdev_master_upper_dev_link(port_dev, dev, NULL);
|
||||
err = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
port_dev->priv_flags |= IFF_TEAM_PORT;
|
||||
|
Reference in New Issue
Block a user