diff options
author | 2025-05-23 11:30:31 +0100 | |
---|---|---|
committer | 2025-05-27 17:31:42 -0700 | |
commit | 09d7ff0694ea133c50ad905fd6e548c13f8af458 (patch) | |
tree | 0714040382108af03f47599c0dd606a71c389483 /scripts/gdb/linux/utils.py | |
parent | net: phy: mediatek: Add Airoha AN7583 PHY support (diff) | |
download | wireguard-linux-09d7ff0694ea133c50ad905fd6e548c13f8af458.tar.xz wireguard-linux-09d7ff0694ea133c50ad905fd6e548c13f8af458.zip |
tools: ynl: parse extack for sub-messages
Extend the Python YNL extack decoding to handle sub-messages in the same
way that YNL C does. This involves retaining the input values so that
they are available during extack decoding.
./tools/net/ynl/pyynl/cli.py --family rt-link --do newlink --create \
--json '{
"linkinfo": {"kind": "netkit", "data": {"policy": 10} }
}'
Netlink error: Invalid argument
nl_len = 92 (76) nl_flags = 0x300 nl_type = 2
error: -22
extack: {'msg': 'Provided default xmit policy not supported', 'bad-attr': '.linkinfo.data(netkit).policy'}
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250523103031.80236-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions