]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: net/psock_fanout: socket joins fanout when link is down
authorGur Stavi <gur.stavi@huawei.com>
Sun, 13 Oct 2024 07:15:26 +0000 (10:15 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 16:52:36 +0000 (09:52 -0700)
commit9317e8933e27501575cbef923dfab30867484e7e
treea6bc1a9af40c362360fee9fca7a4e5645b69d442
parent2cee3e6e2e4b74bec96694169f01cd3feec1f264
selftests: net/psock_fanout: socket joins fanout when link is down

Modify test_control_group to have toggle parameter.
When toggle is non-zero, loopback device will be set down for the
initialization of fd[1] which is still expected to successfully join
the fanout.

Signed-off-by: Gur Stavi <gur.stavi@huawei.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/6f4a506ed5f08f8fc00a966dec8febd1030c6e98.1728802323.git.gur.stavi@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/psock_fanout.c