Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+130 -2
+1 -2
tools/testing/selftests/net/Makefile
··· 78 78 TEST_GEN_FILES += io_uring_zerocopy_tx 79 79 TEST_PROGS += io_uring_zerocopy_tx.sh 80 80 TEST_GEN_FILES += bind_bhash 81 - TEST_GEN_PROGS += netlink-dumps 82 81 TEST_GEN_PROGS += sk_bind_sendto_listen 83 82 TEST_GEN_PROGS += sk_connect_zero_addr 84 83 TEST_GEN_PROGS += sk_so_peek_off ··· 100 101 TEST_PROGS += busy_poll_test.sh 101 102 102 103 # YNL files, must be before "include ..lib.mk" 103 - YNL_GEN_FILES := busy_poller 104 + YNL_GEN_FILES := busy_poller netlink-dumps 104 105 TEST_GEN_FILES += $(YNL_GEN_FILES) 105 106 106 107 TEST_FILES := settings