summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_bpf.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2020-01-06 19:01:56 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-08 21:45:53 +0100
commit240ce7f6428ff5188b9eedc066e1e4d645b8635f (patch)
tree38df958b10b05e5d459aeec5c5bd18e6785d7a61 /net/sched/cls_bpf.c
parentmlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO (diff)
downloadlinux-240ce7f6428ff5188b9eedc066e1e4d645b8635f.tar.xz
linux-240ce7f6428ff5188b9eedc066e1e4d645b8635f.zip
net: sch_prio: When ungrafting, replace with FIFO
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. Fix 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 other Qdiscs. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Petr Machata <petrm@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_bpf.c')
0 files changed, 0 insertions, 0 deletions