]> git.ipfire.org Git - thirdparty/linux.git/commit
tools: ynl: render event op docs correctly
authorDonald Hunter <donald.hunter@gmail.com>
Mon, 12 Jan 2026 15:34:36 +0000 (15:34 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Jan 2026 19:56:36 +0000 (11:56 -0800)
commitfa5726692e4ca0d4e56d7cbd1b33126efd3f849e
treece5e5df56c5d22c1ea4877eaec885e7aee7026d0
parentffe4ccd359d006eba559cb1a3c6113144b7fb38c
tools: ynl: render event op docs correctly

The docs for YNL event ops currently render raw python structs. For
example in:

https://docs.kernel.org/netlink/specs/ethtool.html#cable-test-ntf

  event: {‘attributes’: [‘header’, ‘status’, ‘nest’], ‘__lineno__’: 2385}

Handle event ops correctly and render their op attributes:

  event: attributes: [header, status]

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20260112153436.75495-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/lib/doc_generator.py