[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1516601273-7883-1-git-send-email-roopa@cumulusnetworks.com>
Date: Sun, 21 Jan 2018 22:07:53 -0800
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, nikolay@...ulusnetworks.com,
dsa@...ulusnetworks.com, jiri@...nulli.us
Subject: [PATCH net-next] net: link_watch: mark bonding link events urgent
From: Roopa Prabhu <roopa@...ulusnetworks.com>
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 link notification
to failover/recover (eg: multichassis lag implementations in user-space).
Since the link event code already marks team device port link events
urgent, this patch does the same for bonding link events.
Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
---
net/core/link_watch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index 9828616..63bb2ad 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)
if (dev->ifindex != dev_get_iflink(dev))
return true;
- if (dev->priv_flags & IFF_TEAM_PORT)
+ if (dev->priv_flags & (IFF_TEAM_PORT | IFF_BONDING))
return true;
return netif_carrier_ok(dev) && qdisc_tx_changing(dev);
--
2.1.4
Powered by blists - more mailing lists