Thread (42 messages) 42 messages, 3 authors, 2023-01-12

Re: [PATCH net-next 13/14] devlink: add by-instance dump infra

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-01-05 18:24:56

On Thu, 5 Jan 2023 10:02:54 +0100 Jiri Pirko wrote:
Thu, Jan 05, 2023 at 04:46:04AM CET, kuba@kernel.org wrote:
quoted
quoted
What is "gen"? Generic netlink?  
Generic devlink command. In other words the implementation 
is straightforward enough to factor out the common parts.  
Could it be "genl" then?
Why? What other kind of command is there?
The distinction is weird vs generic, not genl vs IDK-what.
quoted
quoted
Do you plan to have more callbacks here? If no, wouldn't it be better
to just have typedef and assign the pointer to the dump_one in
devl_gen_cmds array?  
If I find the time - yes, more refactoring is possible.  
Could you elaborate a bit more about that?
If I recall I was thinking about adding a "fill" op and policy related
info to the structure. The details would fall into place during coding..
quoted
You mean it doesn't have nl, cmd, dump_one in the name?
Could you *please* at least say what you want the names to be if you're
sending all those subjective nit picks? :/  
Well, I provided a suggested name, not sure why that was not clear.
The point was s/dump/dumpit/ to match the op name.
Oh, just the "it" at the end? Sorry, I don't see the point.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help