linux/tools/testing/selftests/drivers/net/netdevsim
Jiri Pirko 92e832252e sefltests: netdevsim: wait for devlink instance after netns removal
[ Upstream commit f922c7b1c1 ]

When devlink instance is put into network namespace and that network
namespace gets deleted, devlink instance is moved back into init_ns.
This is done as a part of cleanup_net() routine. Since cleanup_net()
is called asynchronously from workqueue, there is no guarantee that
the devlink instance move is done after "ip netns del" returns.

So fix this race by making sure that the devlink instance is present
before any other operation.

Reported-by: Amir Tzin <amirtz@nvidia.com>
Fixes: b74c37fd35 ("selftests: netdevsim: add tests for devlink reload with resources")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230220132336.198597-1-jiri@resnulli.us
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:08 +01:00
..
devlink_in_netns.sh
devlink_trap.sh testing: selftests: drivers: net: netdevsim: devlink: add test case for hard drop statistics 2021-06-14 13:04:25 -07:00
devlink.sh sefltests: netdevsim: wait for devlink instance after netns removal 2023-03-10 09:33:08 +01:00
ethtool-coalesce.sh
ethtool-common.sh selftests: net: test ethtool -L vs mq 2021-09-15 15:46:02 +01:00
ethtool-fec.sh
ethtool-pause.sh
ethtool-ring.sh
fib_notifications.sh
fib.sh selftests: netdevsim: Add test cases for route deletion failure 2022-07-29 12:21:02 +01:00
hw_stats_l3.sh selftests: netdevsim: Increase sleep time in hw_stats_l3.sh test 2022-05-18 14:06:50 +01:00
nexthop.sh
psample.sh
tc-mq-visibility.sh selftests: net: test ethtool -L vs mq 2021-09-15 15:46:02 +01:00
udp_tunnel_nic.sh