]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: net: test extacks in netlink dumps
authorJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 22:44:32 +0000 (14:44 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Nov 2024 01:00:06 +0000 (17:00 -0800)
commit9bb88c659673003453fd42e0ddf95c9628409094
treefa31b2d51c69aad4820ed558b711b6141017ceae
parent3bf39fa849ab8ed52abb6715922e6102d3df9f97
selftests: net: test extacks in netlink dumps

Test that extacks in dumps work. The test fills up the receive buffer
to test both the inline dump (as part of sendmsg()) and delayed one
(run during recvmsg()).

Use YNL helpers to parse the messages. We need to add the test to YNL
file to make sure the right include path are used.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20241119224432.1713040-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/netlink-dumps.c