summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2015-07-30 15:33:23 (GMT)
committerDoug Ledford <dledford@redhat.com>2015-08-30 22:08:49 (GMT)
commit816dd19b3d191da88bc034fb85e21ed09a3ed320 (patch)
treeb8f18f4a063ce9af87ef30dba11a8f33bd469d97 /include
parent399e6f95811bd36fb64b3d30cf8529d633884b4c (diff)
downloadlinux-816dd19b3d191da88bc034fb85e21ed09a3ed320.tar.xz
net: Add info for NETDEV_CHANGEUPPER event
Some consumers of NETDEV_CHANGEUPPER event would like to know which upper device was linked/unlinked and what operation was carried. Add information in the notifier info block for that purpose. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e20979d..2b7fe4e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3556,6 +3556,20 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb,
netdev_features_t features);
+enum netdev_changeupper_event {
+ NETDEV_CHANGEUPPER_LINK,
+ NETDEV_CHANGEUPPER_UNLINK,
+};
+
+struct netdev_changeupper_info {
+ struct netdev_notifier_info info; /* must be first */
+ enum netdev_changeupper_event event;
+ struct net_device *upper;
+};
+
+void netdev_changeupper_info_change(struct net_device *dev,
+ struct netdev_changeupper_info *info);
+
struct netdev_bonding_info {
ifslave slave;
ifbond master;