netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: poll tx timeout only on active tx queues
@ 2016-06-30 13:58 Saeed Mahameed
  2016-06-30 14:28 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Saeed Mahameed @ 2016-06-30 13:58 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Eric Dumazet, Tom Herbert, Mohamad Haj Yahia,
	Saeed Mahameed

From: Mohamad Haj Yahia <mohamad@mellanox.com>

Change the netdev watchdog to poll only the real active tx queues
instead of polling all tx queues.
The netdev driver doesn't necessarily have to start/stop all the
tx queues including the inactive tx queues.

Fixes: fd2ea0a79faa ('net: Use queue aware tests throughout.')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
---
 net/sched/sch_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index f9e0e9c..a10f0ff 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -253,7 +253,7 @@ static void dev_watchdog(unsigned long arg)
 			unsigned int i;
 			unsigned long trans_start;
 
-			for (i = 0; i < dev->num_tx_queues; i++) {
+			for (i = 0; i < dev->real_num_tx_queues; i++) {
 				struct netdev_queue *txq;
 
 				txq = netdev_get_tx_queue(dev, i);
-- 
2.8.0

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

end of thread, other threads:[~2016-07-06  6:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 13:58 [PATCH net] net: poll tx timeout only on active tx queues Saeed Mahameed
2016-06-30 14:28 ` Eric Dumazet
2016-06-30 14:47   ` Saeed Mahameed
2016-07-01  4:50     ` Yuval Mintz
2016-07-01  5:18       ` Eric Dumazet
2016-07-01 12:03         ` Saeed Mahameed
2016-07-06  6:42           ` Yuval Mintz

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).