diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2018-01-22 11:07:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-23 19:43:30 -0500 |
commit | b76f4189df5c54a892ae54ac23908cc54ae7134f (patch) | |
tree | dfea020e9a167e3617c421e17cacd7bdfefdf3d5 | |
parent | 0542e13b5f5663ffdc18e0e028413b2cd09f426f (diff) |
net: link_watch: mark bonding link events urgent
It takes 1sec for bond link down notification to hit user-space
when all slaves of the bond go down. 1sec is too long for
protocol daemons in user-space relying on bond notification
to recover (eg: multichassis lag implementations in user-space).
Since the link event code already marks team device port link events
as urgent, this patch moves the code to cover all lag ports and master.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/link_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/link_watch.c b/net/core/link_watch.c index 982861607f88..e38e641e98d5 100644 --- a/net/core/link_watch.c +++ b/net/core/link_watch.c | |||
@@ -92,7 +92,7 @@ static bool linkwatch_urgent_event(struct net_device *dev) | |||
92 | if (dev->ifindex != dev_get_iflink(dev)) | 92 | if (dev->ifindex != dev_get_iflink(dev)) |
93 | return true; | 93 | return true; |
94 | 94 | ||
95 | if (dev->priv_flags & IFF_TEAM_PORT) | 95 | if (netif_is_lag_port(dev) || netif_is_lag_master(dev)) |
96 | return true; | 96 | return true; |
97 | 97 | ||
98 | return netif_carrier_ok(dev) && qdisc_tx_changing(dev); | 98 | return netif_carrier_ok(dev) && qdisc_tx_changing(dev); |