Commit 6f3e4db7 authored by Peilin Ye's avatar Peilin Ye Committed by sanglipeng
Browse files

net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs

stable inclusion
from stable-v5.10.186
commit 9ced73049016c117cc16339e83559b8e4c4d7a5e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9ced73049016c117cc16339e83559b8e4c4d7a5e



--------------------------------

[ Upstream commit 2d5f6a8d ]

Grafting ingress and clsact Qdiscs does not need a for-loop in
qdisc_graft().  Refactor it.  No functional changes intended.

Tested-by: default avatarPedro Tammela <pctammela@mojatatu.com>
Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: default avatarVlad Buslov <vladbu@nvidia.com>
Signed-off-by: default avatarPeilin Ye <peilin.ye@bytedance.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Stable-dep-of: 84ad0af0 ("net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 9190ac8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment