]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: net: support setting recv_size in YNL
authorJakub Kicinski <kuba@kernel.org>
Fri, 13 Dec 2024 15:22:42 +0000 (07:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Dec 2024 01:30:13 +0000 (17:30 -0800)
commit0518863407b8dcc7070fdbc1c015046d66777e78
tree4f7916c2ff6ccf20cb185600cc676f7e1781c667
parentecc391a541573da46b7ccc188105efedd40aef1b
selftests: net: support setting recv_size in YNL

recv_size parameter allows constraining the buffer size for dumps.
It's useful in testing kernel handling of dump continuation,
IOW testing dumps which span multiple skbs.

Let the tests set this parameter when initializing the YNL family.
Keep the normal default, we don't want tests to unintentionally
behave very differently than normal code.

Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20241213152244.3080955-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/py/ynl.py