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
zatwierdzone przez David S. Miller
rodzic 6dffb0447c
commit 29bf24afb2
8 zmienionych plików z 15 dodań i 11 usunięć

Wyświetl plik

@@ -465,7 +465,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
bat_priv = netdev_priv(hard_iface->soft_iface);
ret = netdev_master_upper_dev_link(hard_iface->net_dev,
soft_iface, NULL);
soft_iface, NULL, NULL);
if (ret)
goto err_dev;