selftests: bonding: create directly devices in the target namespaces
authorZhengchao Shao <shaozhengchao@huawei.com>
Sat, 26 Aug 2023 02:23:30 +0000 (10:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2023 09:24:08 +0000 (10:24 +0100)
commitbf68583624c56bab26b4394fb4721461ded62f94
tree10b90b3cb21bb0e592532ba555b97de46dd40951
parent3a1e2f43985af0dea5750c6436f8cb979780c084
selftests: bonding: create directly devices in the target namespaces

If failed to set link1_1 to netns client, we should delete link1_1 in the
cleanup path. But if set link1_1 to netns client successfully, delete
link1_1 will report warning. So it will be safer creating directly the
devices in the target namespaces.

Reported-by: Hangbin Liu <liuhangbin@gmail.com>
Closes: https://lore.kernel.org/all/ZNyJx1HtXaUzOkNA@Laptop-X1/
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh