]> Gentwo Git Trees - linux/.git/commit
selftests: net: Add tests to verify team driver option set and get.
authorMarc Harvey <marcharvey@google.com>
Fri, 5 Sep 2025 04:04:41 +0000 (04:04 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Sep 2025 09:07:55 +0000 (11:07 +0200)
commitdb1b6006668623b46a3f6b3fe6b5f030e4c60a42
treea7f7fa69e7ee204291eb0ba8b43455cec3b5519a
parent1f24a240974589ce42f70502ccb3ff3f5189d69a
selftests: net: Add tests to verify team driver option set and get.

There are currently no kernel tests that verify setting and getting
options of the team driver.

In the future, options may be added that implicitly change other
options, which will make it useful to have tests like these that show
nothing breaks. There will be a follow up patch to this that adds new
"rx_enabled" and "tx_enabled" options, which will implicitly affect the
"enabled" option value and vice versa.

The tests use teamnl to first set options to specific values and then
gets them to compare to the set values.

Signed-off-by: Marc Harvey <marcharvey@google.com>
Link: https://patch.msgid.link/20250905040441.2679296-1-marcharvey@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/team/Makefile
tools/testing/selftests/drivers/net/team/config
tools/testing/selftests/drivers/net/team/options.sh [new file with mode: 0755]