arp_notify: allow drivers to explicitly request a notification event.
Subsystems (2)
Wait, Ian, are you sure this patch is correct? Look below in notifier.h:
Quoted 37 lines · Ian Campbell
From: Ian Campbell <[email protected]>
commit
06c4648d46d1b757d6b9591a86810be79818b60cupstream.Currently such notifications are only generated when the device comes up or the address changes. However one use case for these notifications is to enable faster network recovery after a virtual machine migration (by causing switches to relearn their MAC tables). A migration appears to the network stack as a temporary loss of carrier and therefore does not trigger either of the current conditions. Rather than adding carrier up as a trigger (which can cause issues when interfaces a flapping) simply add an interface which the driver can use to explicitly trigger the notification.
Signed-off-by Ian Campbell <[email protected]>Cc Stephen Hemminger <[email protected]>Cc Jeremy Fitzhardinge <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>include/linux/netdevice.h +2
-0@@ -1772,6 +1772,8 @@ extern void netif_carrier_on(struct net_device *dev);extern void netif_carrier_off (struct net_device *dev); +extern void netif_notify_peers (struct net_device *dev); +/** * netif_dormant_on - mark device as dormant. * @dev: network device include/linux/notifier.h +0
-0
include/linux/notifier.h static inline int notifier_to_errno(int ret) · line 213
Quoted 4 lines
include/linux/notifier.h +1
-0@@ -210,6 +210,7 @@ static inline int notifier_to_errno(int ret)#define NETDEV_POST_INIT 0x0010#define NETDEV_UNREGISTER_BATCH 0x0011#define NETDEV_BONDING_DESLAVE 0x0012 +#define NETDEV_NOTIFY_PEERS 0x0012
Are you sure that you can duplicate this value?
curious,
greg k-h
Quoted 31 lines · Greg KH
Wait, Ian, are you sure this patch is correct? Look below in
notifier.h:Quoted 27 lines · Ian Campbell
From: Ian Campbell <[email protected]>
commit
06c4648d46d1b757d6b9591a86810be79818b60cupstream.Currently such notifications are only generated when the device comes up or the address changes. However one use case for these notifications is to enable faster network recovery after a virtual machine migration (by causing switches to relearn their MAC tables). A migration appears to the network stack as a temporary loss of carrier and therefore does not trigger either of the current conditions. Rather than adding carrier up as a trigger (which can cause issues when interfaces a flapping) simply add an interface which the driver can use to explicitly trigger the notification.
Signed-off-by Ian Campbell <[email protected]>Cc Stephen Hemminger <[email protected]>Cc Jeremy Fitzhardinge <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>include/linux/netdevice.h +0
-0@@ -1772,6 +1772,8 @@ extern void netif_carrier_on(struct net_device *dev);extern void netif_carrier_off (struct net_device *dev);
Quoted 16 lines
Quoted 10 lines
include/linux/netdevice.h +2
-0+extern void netif_notify_peers (struct net_device *dev); +/** * netif_dormant_on - mark device as dormant. * @dev: network device include/linux/notifier.h +0
-0include/linux/notifier.h static inline int notifier_to_errno(int ret) · line 213
Quoted 4 lines
include/linux/notifier.h +1
-0@@ -210,6 +210,7 @@ static inline int notifier_to_errno(int ret)#define NETDEV_POST_INIT 0x0010#define NETDEV_UNREGISTER_BATCH 0x0011#define NETDEV_BONDING_DESLAVE 0x0012 +#define NETDEV_NOTIFY_PEERS 0x0012Are you sure that you can duplicate this value?
Oh nevermind, David already fixed this up with commit 38117d1495e587fbb10d6e55733139a27893cef5
I'll go queue that up for -stable as well :)
thanks,
greg k-h
Quoted 13 lines · Greg KH
Quoted 10 lines · Greg KH
include/linux/notifier.h static inline int notifier_to_errno(int ret) · line 213
Quoted 8 lines
index 540703b..22c2abb 100644
include/linux/notifier.h +1
-0@@ -210,6 +210,7 @@ static inline int notifier_to_errno(int ret)#define NETDEV_POST_INIT 0x0010#define NETDEV_UNREGISTER_BATCH 0x0011#define NETDEV_BONDING_DESLAVE 0x0012 +#define NETDEV_NOTIFY_PEERS 0x0012Are you sure that you can duplicate this value?
Quoted 2 lines
Oh nevermind, David already fixed this up with commit
38117d1495e587fbb10d6e55733139a27893cef5
David did mention that he fixed up a clash at the timebut I hadn't realised it was a separate checkin, thanks for figuring it out.
Quoted 1 line
I'll go queue that up for -stable as well :)
Cool, thanks.
Ian.