]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: net: make the dump test less sensitive to mem accounting
authorJakub Kicinski <kuba@kernel.org>
Sat, 6 Sep 2025 21:13:50 +0000 (14:13 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 8 Sep 2025 19:57:05 +0000 (12:57 -0700)
commit27bc5eaf004c437309dee1b9af24806262631d57
tree1e1a3b0f98b5006e84e3ce26ff7407474ca7b232
parentc6142e1913de563ab772f7b0e4ae78d6de9cc5b1
selftests: net: make the dump test less sensitive to mem accounting

Recent changes to make netlink socket memory accounting must
have broken the implicit assumption of the netlink-dump test
that we can fit exactly 64 dumps into the socket. Handle the
failure mode properly, and increase the dump count to 80
to make sure we still run into the error condition if
the default buffer size increases in the future.

Link: https://patch.msgid.link/20250906211351.3192412-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/netlink-dumps.c