Thread (23 messages) 23 messages, 3 authors, 2022-09-27

Re: [PATCH v2 net-next 01/12] net/sched: taprio: allow user input of per-tc max SDU

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-09-26 20:39:12
Also in: lkml

On Fri, 23 Sep 2022 19:32:59 +0300 Vladimir Oltean wrote:
+	if (!tb[TCA_TAPRIO_TC_ENTRY_INDEX]) {
+		NL_SET_ERR_MSG_MOD(extack, "TC entry index missing");
NL_SET_ERR_ATTR_MISS() ?
quoted hunk ↗ jump to hunk
+		return -EINVAL;
+	}
+
+	tc = nla_get_u32(tb[TCA_TAPRIO_TC_ENTRY_INDEX]);
+	if (tc >= TC_QOPT_MAX_QUEUE) {
+		NL_SET_ERR_MSG_MOD(extack, "TC entry index out of range");
NLA_POLICY_MAX()

Are you not using those on purpose? :(
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help