netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] When ungrafting from PRIO, replace child with FIFO
@ 2020-01-06 18:01 Petr Machata
  2020-01-06 18:01 ` [PATCH net 1/2] mlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO Petr Machata
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Petr Machata @ 2020-01-06 18:01 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: Jiri Pirko, Petr Machata

When a child Qdisc is removed from one of the PRIO Qdisc's bands, it is
replaced unconditionally by a NOOP qdisc. As a result, any traffic hitting
that band gets dropped. That is incorrect--no Qdisc was explicitly added
when PRIO was created, and after removal, none should have to be added
either.

In patch #2, this problem is fixed for PRIO by first attempting to create a
default Qdisc and only falling back to noop when that fails. This pattern
of attempting to create an invisible FIFO, using NOOP only as a fallback,
is also seen in some other Qdiscs.

The only driver currently offloading PRIO (and thus presumably the only one
impacted by this) is mlxsw. Therefore patch #1 extends mlxsw to handle the
replacement by an invisible FIFO gracefully.

Petr Machata (2):
  mlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO
  net: sch_prio: When ungrafting, replace with FIFO

 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c |  7 +++++++
 net/sched/sch_prio.c                                 | 10 ++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2020-01-08 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06 18:01 [PATCH net 0/2] When ungrafting from PRIO, replace child with FIFO Petr Machata
2020-01-06 18:01 ` [PATCH net 1/2] mlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO Petr Machata
2020-01-06 18:01 ` [PATCH net 2/2] net: sch_prio: When ungrafting, replace with FIFO Petr Machata
2020-01-08 20:47 ` [PATCH net 0/2] When ungrafting from PRIO, replace child " David Miller
     [not found] ` <87eewcfoe0.fsf@mellanox.com>
2020-01-08 20:48   ` 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).