linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v1] docs: staging: add netlink attrs best practices
       [not found] <20230808035636.148552-1-linma@zju.edu.cn>
@ 2023-08-08 19:37 ` Jakub Kicinski
  2023-08-09  1:25   ` Lin Ma
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kicinski @ 2023-08-08 19:37 UTC (permalink / raw)
  To: Lin Ma; +Cc: corbet, void, jani.nikula, rdunlap, linux-doc, linux-kernel

On Tue,  8 Aug 2023 11:56:36 +0800 Lin Ma wrote:
> Provide some suggestions that who deal with Netlink code could follow
> (of course using the word "best-practices" may sound somewhat
> exaggerate).
> 
> According to my recent practices, the parsing of the Netlink attributes
> lacks documents for kernel developers. Since recently the relevant docs
> for Netlink user space get replenished, I guess is a good chance for
> kernel space part to catch with.
> 
> First time to write a document and any reviews are appreciated.

Oh, you put quite some effort into this!

I have a hard time coming up with reasonable review comments, because
while the doc is informative and pretty correct, it focuses on what's
legacy use of netlink at this point. People writing new code will only
get confuse with this information :(

Modern families are all generic netlink, and validation is taken care
of in the core :(

If you post a v2 please make sure to CC netdev@

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] docs: staging: add netlink attrs best practices
  2023-08-08 19:37 ` [PATCH v1] docs: staging: add netlink attrs best practices Jakub Kicinski
@ 2023-08-09  1:25   ` Lin Ma
  0 siblings, 0 replies; 2+ messages in thread
From: Lin Ma @ 2023-08-09  1:25 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: corbet, void, jani.nikula, rdunlap, linux-doc, linux-kernel

Hello Jakub,

> Oh, you put quite some effort into this!
> 
> I have a hard time coming up with reasonable review comments, because
> while the doc is informative and pretty correct, it focuses on what's
> legacy use of netlink at this point. People writing new code will only
> get confuse with this information :(

Oops, my bad, I will somewhat adjust the content structure, or just claim
to just concern legacy use for simplicity and avoid confusion.

> 
> Modern families are all generic netlink, and validation is taken care
> of in the core :(
> 

OK, you are right.

> If you post a v2 please make sure to CC netdev@

I see. It appears that the issue is due to an SMTP error., will watch
out this.

Regards
Lin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-09  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230808035636.148552-1-linma@zju.edu.cn>
2023-08-08 19:37 ` [PATCH v1] docs: staging: add netlink attrs best practices Jakub Kicinski
2023-08-09  1:25   ` Lin Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).