]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: prio: properly report out of memory errors
authorEric Dumazet <edumazet@google.com>
Sun, 12 Jun 2016 23:21:47 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2016 01:56:38 +0000 (21:56 -0400)
commit755b23e1619eb9c467bdea5d8e1a664cf620cf83
tree83e2f15dee5620f1167c97cb4646126ad0fef6ea
parent211f9e82f188d45aa35407e04a3bc54e122aabaf
net_sched: prio: properly report out of memory errors

At Qdisc creation or change time, prio_tune() creates missing
pfifo qdiscs but does not return an error code if one
qdisc could not be allocated.

Leaving a qdisc in non operational state without telling user
anything about this problem is not good.

Also, testing if we replace something different than noop_qdisc
a second time makes no sense so I removed useless code.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_prio.c