All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] net_sched: make qdisc_tree_decrease_qlen() work for non mq
@ 2015-12-15 17:43 Eric Dumazet
  2015-12-15 18:42 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2015-12-15 17:43 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Stas Nichiporovich

From: Eric Dumazet <edumazet@google.com>

Stas Nichiporovich reported a regression in his HFSC qdisc setup
on a non multi queue device.

It turns out I mistakenly added a TCQ_F_NOPARENT flag on all qdisc
allocated in qdisc_create() for non multi queue devices, which was
rather buggy. I was clearly mislead by the TCQ_F_ONETXQUEUE that is
also set here for no good reason, since it only matters for the root
qdisc.

Fixes: 4eaf3b84f288 ("net_sched: fix qdisc_tree_decrease_qlen() races")
Reported-by: Stas Nichiporovich <stasn77@gmail.com>
Tested-by: Stas Nichiporovich <stasn77@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/sched/sch_api.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 7ec667dd4ce1..b5c2cf2aa6d4 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -950,7 +950,7 @@ qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue,
 		}
 		lockdep_set_class(qdisc_lock(sch), &qdisc_tx_lock);
 		if (!netif_is_multiqueue(dev))
-			sch->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT;
+			sch->flags |= TCQ_F_ONETXQUEUE;
 	}
 
 	sch->handle = handle;

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

* Re: [PATCH net] net_sched: make qdisc_tree_decrease_qlen() work for non mq
  2015-12-15 17:43 [PATCH net] net_sched: make qdisc_tree_decrease_qlen() work for non mq Eric Dumazet
@ 2015-12-15 18:42 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-12-15 18:42 UTC (permalink / raw)
  To: eric.dumazet; +Cc: netdev, stasn77

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Tue, 15 Dec 2015 09:43:12 -0800

> From: Eric Dumazet <edumazet@google.com>
> 
> Stas Nichiporovich reported a regression in his HFSC qdisc setup
> on a non multi queue device.
> 
> It turns out I mistakenly added a TCQ_F_NOPARENT flag on all qdisc
> allocated in qdisc_create() for non multi queue devices, which was
> rather buggy. I was clearly mislead by the TCQ_F_ONETXQUEUE that is
> also set here for no good reason, since it only matters for the root
> qdisc.
> 
> Fixes: 4eaf3b84f288 ("net_sched: fix qdisc_tree_decrease_qlen() races")
> Reported-by: Stas Nichiporovich <stasn77@gmail.com>
> Tested-by: Stas Nichiporovich <stasn77@gmail.com>
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied and queued up for -stable.

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

end of thread, other threads:[~2015-12-15 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-15 17:43 [PATCH net] net_sched: make qdisc_tree_decrease_qlen() work for non mq Eric Dumazet
2015-12-15 18:42 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.