]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: add possibility to pass information about upper device via notifier
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:11 +0000 (12:12 +0100)
committerBrian Maly <brian.maly@oracle.com>
Tue, 20 Nov 2018 22:11:16 +0000 (17:11 -0500)
commit03b83034256d6fa7cf7190e0e3254f5dfca46e63
tree368a1508ddc0a49f87b1d92697570e8e4509f17a
parent168d38c5e1371eb28a31de9834eb9b99344e8ea1
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>
(cherry picked from commit 29bf24afb29042f568fa67b1b0eee46796725ed2)
Orabug: 28122104
Signed-off-by: Vijay Balakrishna <vijay.balakrishna@oracle.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/bonding/bond_main.c
drivers/net/team/team.c
drivers/net/vrf.c
(vrf.c - file not present in uek4)
include/linux/netdevice.h
net/batman-adv/hard-interface.c
net/bridge/br_if.c
net/core/dev.c
net/openvswitch/vport-netdev.c
(conflicts are related to #of arguments to netdev_master_upper_dev_link(),
which is retained to maintain kABI.  To allow upper-code to pass
information down to notifier during linking we have modified
number of arguments to netdev_master_upper_dev_link_private())

Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/bonding/bond_main.c
include/linux/netdevice.h
net/core/dev.c