diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-08-27 10:31:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-28 02:28:34 +0300 |
commit | 0e4ead9d7b3655d76371604abb9b0dcc4e79bb7d (patch) | |
tree | 69989a0325ec37f10da8dba813fdd779b9c257f7 /include/linux/netdevice.h | |
parent | 547c890cfd26010e01b3faf98f29ca9b2252c8d8 (diff) | |
download | linux-0e4ead9d7b3655d76371604abb9b0dcc4e79bb7d.tar.xz |
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6abe0d6f1e1d..39f30daac483 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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) { |