]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: hsr: Extend the hsr_ping.sh test to use fixed MAC addresses
authorLukasz Majewski <lukma@denx.de>
Mon, 3 Jun 2024 09:33:21 +0000 (11:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Jun 2024 02:26:41 +0000 (19:26 -0700)
Fixed MAC addresses help with debugging as last four bytes identify the
network namespace.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Link: https://lore.kernel.org/r/20240603093322.3150030-1-lukma@denx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/hsr/hsr_ping.sh

index 3684b813b0f67ec6bf247a2e633f1a09ffec3852..f5d207fc770ad14714d902469e68e194de4981ae 100755 (executable)
@@ -152,6 +152,15 @@ setup_hsr_interfaces()
        ip -net "$ns3" addr add 100.64.0.3/24 dev hsr3
        ip -net "$ns3" addr add dead:beef:1::3/64 dev hsr3 nodad
 
+       ip -net "$ns1" link set address 00:11:22:00:01:01 dev ns1eth1
+       ip -net "$ns1" link set address 00:11:22:00:01:02 dev ns1eth2
+
+       ip -net "$ns2" link set address 00:11:22:00:02:01 dev ns2eth1
+       ip -net "$ns2" link set address 00:11:22:00:02:02 dev ns2eth2
+
+       ip -net "$ns3" link set address 00:11:22:00:03:01 dev ns3eth1
+       ip -net "$ns3" link set address 00:11:22:00:03:02 dev ns3eth2
+
        # All Links up
        ip -net "$ns1" link set ns1eth1 up
        ip -net "$ns1" link set ns1eth2 up