|
@@ -2158,6 +2158,7 @@ struct netdev_lag_upper_info {
|
|
|
#define NETDEV_CHANGEINFODATA 0x0018
|
|
|
#define NETDEV_BONDING_INFO 0x0019
|
|
|
#define NETDEV_PRECHANGEUPPER 0x001A
|
|
|
+#define NETDEV_CHANGELOWERSTATE 0x001B
|
|
|
|
|
|
int register_netdevice_notifier(struct notifier_block *nb);
|
|
|
int unregister_netdevice_notifier(struct notifier_block *nb);
|
|
@@ -2179,6 +2180,11 @@ struct netdev_notifier_changeupper_info {
|
|
|
void *upper_info; /* upper dev info */
|
|
|
};
|
|
|
|
|
|
+struct netdev_notifier_changelowerstate_info {
|
|
|
+ struct netdev_notifier_info info; /* must be first */
|
|
|
+ void *lower_state_info; /* is lower dev state */
|
|
|
+};
|
|
|
+
|
|
|
static inline void netdev_notifier_info_init(struct netdev_notifier_info *info,
|
|
|
struct net_device *dev)
|
|
|
{
|
|
@@ -3640,6 +3646,8 @@ void netdev_upper_dev_unlink(struct net_device *dev,
|
|
|
void netdev_adjacent_rename_links(struct net_device *dev, char *oldname);
|
|
|
void *netdev_lower_dev_get_private(struct net_device *dev,
|
|
|
struct net_device *lower_dev);
|
|
|
+void netdev_lower_state_changed(struct net_device *lower_dev,
|
|
|
+ void *lower_state_info);
|
|
|
|
|
|
/* RSS keys are 40 or 52 bytes long */
|
|
|
#define NETDEV_RSS_KEY_LEN 52
|