netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next] net: make all team port device link events urgent
@ 2013-06-11 21:09 Jiri Pirko
  2013-06-13  9:32 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Pirko @ 2013-06-11 21:09 UTC (permalink / raw)
  To: netdev; +Cc: davem, edumazet, fbl, bhutchings, tj

From: Flavio Leitner <fbl@redhat.com>

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>
---
 net/core/link_watch.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index 8f82a5c..9c3a839 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);
 }
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch net-next] net: make all team port device link events urgent
  2013-06-11 21:09 [patch net-next] net: make all team port device link events urgent Jiri Pirko
@ 2013-06-13  9:32 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-06-13  9:32 UTC (permalink / raw)
  To: jiri; +Cc: netdev, edumazet, fbl, bhutchings, tj

From: Jiri Pirko <jiri@resnulli.us>
Date: Tue, 11 Jun 2013 23:09:29 +0200

> From: Flavio Leitner <fbl@redhat.com>
> 
> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-13  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 21:09 [patch net-next] net: make all team port device link events urgent Jiri Pirko
2013-06-13  9:32 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).