Skip to content

Commit b76f418

Browse files
roopa-prabhudavem330
authored andcommitted
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 <[email protected]> Acked-by: Jiri Pirko <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0542e13 commit b76f418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/link_watch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static bool linkwatch_urgent_event(struct net_device *dev)
9292
if (dev->ifindex != dev_get_iflink(dev))
9393
return true;
9494

95-
if (dev->priv_flags & IFF_TEAM_PORT)
95+
if (netif_is_lag_port(dev) || netif_is_lag_master(dev))
9696
return true;
9797

9898
return netif_carrier_ok(dev) && qdisc_tx_changing(dev);

0 commit comments

Comments
 (0)