]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynl: cli: extract the event/notify handling in --list-attrs
authorJakub Kicinski <kuba@kernel.org>
Sat, 10 Jan 2026 23:31:41 +0000 (15:31 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Jan 2026 21:29:31 +0000 (13:29 -0800)
commit6ccc421b14613aac32b2647462ae4d40f5dd43b8
treea480e2e11fded31c3a656b4c58b685f493939a54
parent45b99bb464eb62da555ecbef31583d9701881d43
tools: ynl: cli: extract the event/notify handling in --list-attrs

Event and notify handling is quite different from do / dump
handling. Forcing it into print_mode_attrs() doesn't really
buy us anything as events and notifications do not have requests.
Call print_attr_list() directly. Apart form subjective code
clarity this also removes the word "reply" from the output:

Before:

  Event reply attributes:

Now:

  Event attributes:

Tested-by: Gal Pressman <gal@nvidia.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20260110233142.3921386-7-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/cli.py