]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: tsn_lib: allow multiple isochron receivers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 23 Sep 2022 21:00:14 +0000 (00:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 20:22:00 +0000 (13:22 -0700)
commit089b123aa1fd0e6c0d9300b74b02eeffba79bf2b
tree32e33bacdee0c937fff6de4d55d9fb3bb2091446
parentd0acf6c832b5674aede29ccac97b8516bc71c114
selftests: net: tsn_lib: allow multiple isochron receivers

Move the PID variable for the isochron receiver into a separate
namespace per stats port, to allow multiple receivers (and/or
orchestration daemons) to be instantiated by the same script.

Preserve the existing behavior by making isochron_do() use the default
stats TCP port of 5000.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/tsn_lib.sh