Thread (30 messages) 30 messages, 6 authors, 2025-12-05

Re: [PATCH net-next V4 08/14] devlink: Allow rate node parents from other devlinks

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-11-28 04:09:30
Also in: linux-doc, linux-rdma, lkml

On Tue, 25 Nov 2025 22:06:07 +0200 Tariq Toukan wrote:
quoted hunk ↗ jump to hunk
@@ -646,6 +706,13 @@ int devlink_nl_rate_set_doit(struct sk_buff *skb, struct genl_info *info)
 		goto unlock;
 	}
 
+	if (info->user_ptr[1] && info->user_ptr[1] != devlink &&
+	    !ops->supported_cross_device_rate_nodes) {
+		NL_SET_ERR_MSG(info->extack,
+			       "Cross-device rate parents aren't supported");
+		return -EOPNOTSUPP;
err = ...
goto unlock
+	}
+
 	err = devlink_nl_rate_set(devlink_rate, ops, info);
 
 	if (!err)
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help