]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: forwarding: lib: Allow passing PID to stop_traffic()
authorPetr Machata <petrm@nvidia.com>
Thu, 17 Oct 2024 09:45:45 +0000 (11:45 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 11:33:47 +0000 (13:33 +0200)
commit0e07d5dbfbd9b0441ae4ec07a2a72738121356e2
tree2b0e323add7d8e404db8a75d04cfe59f1087e123
parentb4b0549a4e59747b49619b2edabfb0d04e37c0b9
selftests: forwarding: lib: Allow passing PID to stop_traffic()

Now that it is possible to schedule a deferral of stop_traffic() right
after the traffic is started, we do not have to rely on the %% magic to
kill the background process that was started last. Instead we can just give
the PID explicitly. This makes it possible to start other background
processes after the traffic is started without confusing the cleanup.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/forwarding/lib.sh