aboutsummaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorFlavio Leitner <fbl@redhat.com>2013-06-11 23:09:29 +0200
committerDavid S. Miller <davem@davemloft.net>2013-06-13 02:31:41 -0700
commit194f4a6df2a92c3d0bc65a85facfbc2433b25d06 (patch)
tree3ae6c0e1d1ece8ffb8c81f085b19ff615af3c9e6 /net/core
parenta06a2d378dbf099c874ad58de07a8e54ffdc94d3 (diff)
net: make all team port device link events urgent
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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/link_watch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index 8f82a5cc385..9c3a839322b 100644
--- a/net/core/link_watch.c
+++ b/net/core/link_watch.c
@@ -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);
}