Thread (91 messages) 91 messages, 5 authors, 2024-08-29

Re: [PATCH v3 03/12] net-shapers: implement NL get operation

From: Paolo Abeni <pabeni@redhat.com>
Date: 2024-08-16 08:53:05

On 8/14/24 10:37, Jiri Pirko wrote:
Tue, Aug 13, 2024 at 05:17:12PM CEST, pabeni@redhat.com wrote:
quoted
On 8/1/24 15:42, Jiri Pirko wrote:
[...]
quoted
quoted
int net_shaper_nl_get_doit(struct sk_buff *skb, struct genl_info *info)
{
-	return -EOPNOTSUPP;
+	struct net_shaper_info *shaper;
+	struct net_device *dev;
+	struct sk_buff *msg;
+	u32 handle;
+	int ret;
+
+	ret = fetch_dev(info, &dev);
This is quite net_device centric. Devlink rate shaper should be
eventually visible throught this api as well, won't they? How do you
imagine that?
I'm unsure we are on the same page. Do you foresee this to replace and
obsoleted the existing devlink rate API? It was not our so far.
Driver-api-wise, yes. I believe that was the goal, to have drivers to
implement one rate api.
I initially underlooked at this point, I'm sorry.

Re-reading this I think we are not on the same page.

The net_shaper_ops are per network device operations: they are aimed 
(also) at consolidating network device shaping related callbacks, but 
they can't operate on non-network device objects (devlink port).

Cheers,

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help