]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: Add test for enablement of ports with teamd
authorMarc Harvey <marcharvey@google.com>
Thu, 9 Apr 2026 02:59:27 +0000 (02:59 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 13 Apr 2026 13:09:49 +0000 (15:09 +0200)
commit10407eebe8861802d5117956604f94d364df85d5
treed43b76ec11639a2e939e5ff883ed0895371e2ad2
parent05e352444b2430de4b183b4a988085381e5fd6ad
selftests: net: Add test for enablement of ports with teamd

There are no tests that verify enablement and disablement of team driver
ports with teamd. This should work even with changes to the enablement
option, so it is important to test.

This test sets up an active-backup network configuration across two
network namespaces, and tries to send traffic while changing which
link is the active one.

Also increase the team test timeout to 300 seconds, because gracefully
killing teamd can take 30 seconds for each instance.

Signed-off-by: Marc Harvey <marcharvey@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260409-teaming-driver-internal-v7-5-f47e7589685d@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/team/Makefile
tools/testing/selftests/drivers/net/team/settings [new file with mode: 0644]
tools/testing/selftests/drivers/net/team/team_lib.sh
tools/testing/selftests/drivers/net/team/teamd_activebackup.sh [new file with mode: 0755]
tools/testing/selftests/net/lib.sh