Unverified Commit 568e5d6f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2090 net/sched: sch_hfsc: Ensure inner classes have fsc curve

parents e80d0dac 2bb7ac4b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1012,6 +1012,10 @@ hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
		if (parent == NULL)
			return -ENOENT;
	}
	if (!(parent->cl_flags & HFSC_FSC) && parent != &q->root) {
		NL_SET_ERR_MSG(extack, "Invalid parent - parent class must have FSC");
		return -EINVAL;
	}

	if (classid == 0 || TC_H_MAJ(classid ^ sch->handle) != 0)
		return -EINVAL;