net/sched: sch_qfq: refactor parsing of netlink parameters
authorPedro Tammela <pctammela@mojatatu.com>
Sat, 22 Apr 2023 15:56:11 +0000 (12:56 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Jul 2023 11:49:27 +0000 (13:49 +0200)
commit4b33836824052c91cfa812f1222cdfa0ff8daa41
treefd166339f6cf6adbb625ca88eef6bc60a527e2bf
parent0aec8dab2be672fbaf4141c41648ed3afd829660
net/sched: sch_qfq: refactor parsing of netlink parameters

[ Upstream commit 25369891fcef373540f8b4e0b3bccf77a04490d5 ]

Two parameters can be transformed into netlink policies and
validated while parsing the netlink message.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 3e337087c3b5 ("net/sched: sch_qfq: account for stab overhead in qfq_enqueue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/sch_qfq.c