Unverified Commit 4701c39f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15637 net_sched: sch_sfq: don't allow 1 packet limit

parents 82566893 203d62bf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -658,6 +658,9 @@ static int sfq_change(struct Qdisc *sch, struct nlattr *opt)
		if (!p)
			return -ENOMEM;
	}
	if (ctl->limit == 1)
		return -EINVAL;

	sch_tree_lock(sch);
	if (ctl->quantum) {
		q->quantum = ctl->quantum;