summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/ksft.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-04-20 05:35:41 +0300
committerJakub Kicinski <kuba@kernel.org>2024-04-23 20:09:49 +0300
commit8af4f60472fce1f22db5068107b37bcc1a65eabd (patch)
treeadee8577bf67ada80590ae4c934f9f19e7bafc3b /tools/testing/selftests/net/lib/py/ksft.py
parent652332e3f1d6209dab372e0dfc7a5bbe209bf698 (diff)
downloadlinux-8af4f60472fce1f22db5068107b37bcc1a65eabd.tar.xz
netlink: support all extack types in dumps
Note that when this commit message refers to netlink dump it only means the actual dumping part, the parsing / dump start is handled by the same code as "doit". Commit 4a19edb60d02 ("netlink: Pass extack to dump handlers") added support for returning extack messages from dump handlers, but left out other extack info, e.g. bad attribute. This used to be fine because until YNL we had little practical use for the machine readable attributes, and only messages were used in practice. YNL flips the preference 180 degrees, it's now much more useful to point to a bad attr with NL_SET_BAD_ATTR() than type an English message saying "attribute XYZ is $reason-why-bad". Support all of extack. The fact that extack only gets added if it fits remains unaddressed. Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20240420023543.3300306-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ksft.py')
0 files changed, 0 insertions, 0 deletions