[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20231214111701.51668f06@kernel.org>
Date: Thu, 14 Dec 2023 11:17:01 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, Jiri Pirko <jiri@...nulli.us>, Paolo Abeni
<pabeni@...hat.com>
Subject: Re: [Draft PATCH net-next 0/3] add YAML spec for team
On Thu, 14 Dec 2023 12:15:07 +0800 Hangbin Liu wrote:
> > > 3. Do we have to hard code the string max-len? Is there a way to use
> > > the name in definitions? e.g.
> > > name: name
> > > type: string
> > > checks:
> > > max-len: string-max-len
> >
> > Yes, that's the intention, if codegen doesn't support that today it
> > should be improved.
>
> I can try improve this. But may a little late (should go next year).
> If you have time you can improve this directly.
Noted on my todo list but no ETA, let's see who gets to it first.. :)
> > > 4. The doc will be generate to rst file in future, so there will not have
> > > other comments in the _nl.c or _nl.h files, right?
> >
> > It already generates ReST:
> > https://docs.kernel.org/next/networking/netlink_spec/
> > We do still generate kdoc in the uAPI header, tho.
>
> How to generate the doc in uAPI header?
The doc strings for enum types should appear in uAPI.
Other docs in uAPI usually describe nesting.. which the YAML spec
makes a bit obsolete / possible to generate automatically.
If there's more that we need we can extend the codegen..
Powered by blists - more mailing lists