net: make all team port device link events urgent
authorFlavio Leitner <fbl@redhat.com>
Tue, 11 Jun 2013 21:09:29 +0000 (23:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 09:31:41 +0000 (02:31 -0700)
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>
net/core/link_watch.c

index 8f82a5cc3851d3a61953a6cad926c9040bc770a7..9c3a839322baccbf69079747a4588079ce46d029 100644 (file)
@@ -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);
 }