net: introduce change upper device notifier change info
Add info that is passed along with NETDEV_CHANGEUPPER event. 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
547c890cfd
commit
0e4ead9d7b
@@ -2127,6 +2127,13 @@ struct netdev_notifier_change_info {
|
||||
unsigned int flags_changed;
|
||||
};
|
||||
|
||||
struct netdev_notifier_changeupper_info {
|
||||
struct netdev_notifier_info info; /* must be first */
|
||||
struct net_device *upper_dev; /* new upper dev */
|
||||
bool master; /* is upper dev master */
|
||||
bool linking; /* is the nofication for link or unlink */
|
||||
};
|
||||
|
||||
static inline void netdev_notifier_info_init(struct netdev_notifier_info *info,
|
||||
struct net_device *dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user