]> git.dujemihanovic.xyz Git - linux.git/commit
selftests: net: local_termination: parameterize sending interface
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 15 Aug 2024 00:06:55 +0000 (03:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Aug 2024 08:59:31 +0000 (09:59 +0100)
commit4261fa35185c0112acca0496d3732c8fcfe1dcf2
treed3bf0eb6b881a3685fe778b4e379f08610e992fa
parent8d019b15ddd55d6dc5685b1f51902c4aa8e01939
selftests: net: local_termination: parameterize sending interface

In future changes we will want to subject the DUT, $h2, to additional
VLAN-tagged traffic. For that, we need to run the tests using $h1.100 as
a sending interface, rather than the currently hardcoded $h1.

Add a parameter to run_test() and modify its 2 callers to explicitly
pass $h1, as was implicit before.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/local_termination.sh