]> Git Repo - linux.git/commit
net/sched: sch_ingress: Only create under TC_H_INGRESS
authorPeilin Ye <[email protected]>
Mon, 29 May 2023 19:52:55 +0000 (12:52 -0700)
committerJakub Kicinski <[email protected]>
Wed, 31 May 2023 06:31:04 +0000 (23:31 -0700)
commitc7cfbd115001f94de9e4053657946a383147e803
tree410e8dde9c445cd414c336aa3bd7a57d4e7f7ccd
parent7ba0732c805fdc623494ff36245d84222ba893e3
net/sched: sch_ingress: Only create under TC_H_INGRESS

ingress Qdiscs are only supposed to be created under TC_H_INGRESS.
Return -EOPNOTSUPP if 'parent' is not TC_H_INGRESS, similar to
mq_init().

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: [email protected]
Closes: https://lore.kernel.org/r/[email protected]/
Tested-by: Pedro Tammela <[email protected]>
Acked-by: Jamal Hadi Salim <[email protected]>
Reviewed-by: Jamal Hadi Salim <[email protected]>
Reviewed-by: Vlad Buslov <[email protected]>
Signed-off-by: Peilin Ye <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
net/sched/sch_ingress.c
This page took 0.056969 seconds and 4 git commands to generate.