Skip to content

Commit

Permalink
net: make all team port device link events urgent
Browse files Browse the repository at this point in the history
Since team functionality relies heavily on userspace daemon, we need to
deliver event to userspace via Netlink as quick as possible. So make all
team port device link events urgent.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
fleitner authored and davem330 committed Jun 13, 2013
1 parent a06a2d3 commit 194f4a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/core/link_watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ static bool linkwatch_urgent_event(struct net_device *dev)
if (dev->ifindex != dev->iflink)
return true;

if (dev->priv_flags & IFF_TEAM_PORT)
return true;

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

Expand Down

0 comments on commit 194f4a6

Please sign in to comment.