<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/tools/net/ynl/generated/fou-user.c, branch master</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=master</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2023-12-05T18:24:39+00:00</updated>
<entry>
<title>tools: ynl: remove generated user space code from git</title>
<updated>2023-12-05T18:24:39+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-12-02T21:17:59+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=f7c0e362a25f99fafa73d62a2e8c3da00cf1fc0e'/>
<id>urn:sha1:f7c0e362a25f99fafa73d62a2e8c3da00cf1fc0e</id>
<content type='text'>
The ynl-generated user space C code is already above 25kLoC
and is growing.

The initial reason to commit these files was to make reviewing changes
to the generator easier. Unfortunately, it has the opposite effect on
reviewing changes to specs, and we get far more changes to specs
than to the generator.

Uncommit those fails, as they are generated on the fly as needed.
netdev patchwork now runs a script on each series to create a diff
of generated code on the fly, for the rare cases when looking at
it is helpful:
https://github.com/kuba-moo/nipa/blob/master/tests/series/ynl/ynl.sh

Suggested-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
Acked-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: ynl-gen: always construct struct ynl_req_state</title>
<updated>2023-11-29T16:44:02+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-11-26T22:58:58+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42'/>
<id>urn:sha1:83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42</id>
<content type='text'>
struct ynl_req_state carries reply-related info from generated code
into generic YNL code. While we don't need reply info to execute
a request without a reply, we still need to pass in the struct, because
it's also where we get the pointer to struct ynl_sock from. Passing NULL
results in crashes if kernel returns an error or an unexpected reply.

Fixes: dc0956c98f11 ("tools: ynl-gen: move the response reading logic into YNL")
Link: https://lore.kernel.org/r/20231126225858.2144136-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: ynl: regen: regenerate the if ladders</title>
<updated>2023-06-09T21:40:31+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-06-08T21:11:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7234415b8f86c496fec2d62a48f136cde530ad95'/>
<id>urn:sha1:7234415b8f86c496fec2d62a48f136cde530ad95</id>
<content type='text'>
Renegate the code to combine } and else and use tmp variable
to store type.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

</content>
</entry>
<entry>
<title>tools: ynl: regen: cleanup user space header includes</title>
<updated>2023-06-09T21:40:31+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-06-08T21:11:50+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9b52fd4b630526aa78bde8f9c6217954c71dc6a5'/>
<id>urn:sha1:9b52fd4b630526aa78bde8f9c6217954c71dc6a5</id>
<content type='text'>
Remove unnecessary includes.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

</content>
</entry>
<entry>
<title>tools: ynl-gen: don't generate forward declarations for policies - regen</title>
<updated>2023-06-08T21:01:10+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-06-07T20:24:01+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0a9471219672c63b4729f4011a77e017becf8607'/>
<id>urn:sha1:0a9471219672c63b4729f4011a77e017becf8607</id>
<content type='text'>
Renegerate code after dropping forward declarations for policies.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

</content>
</entry>
<entry>
<title>tools: ynl-gen: use enum names in op strmap more carefully</title>
<updated>2023-06-08T21:01:10+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-06-07T20:23:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9858bfc271de3cc61307a710044c304e6ec34f8a'/>
<id>urn:sha1:9858bfc271de3cc61307a710044c304e6ec34f8a</id>
<content type='text'>
In preparation for supporting families which use different msg
ids to and from the kernel - make sure the ids in op strmap
are correct. The map is expected to be used mostly for notifications,
don't generate a separate map for the "to kernel" direction.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

</content>
</entry>
<entry>
<title>tools: ynl: support fou and netdev in C</title>
<updated>2023-06-06T19:31:32+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-06-05T19:01:07+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d75fdfbc6f260f50cde5d1d566ab010a370df62e'/>
<id>urn:sha1:d75fdfbc6f260f50cde5d1d566ab010a370df62e</id>
<content type='text'>
Generate the code for netdev and fou families. They are simple
and already supported by the code gen.

Reviewed-by: Willem de Bruijn &lt;willemb@google.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
</feed>
