OSDN Git Service

selftests: Add a basic HSR test.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 29 Nov 2022 16:48:15 +0000 (17:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Dec 2022 04:26:22 +0000 (20:26 -0800)
commit7d0455e97072b81c03b6062dbcc1403ebf9d9da5
tree8f008d34c4d7d4e5e88fb9f441d67ec710e23a70
parent20d3c1e9b861b85e1a774e1876d6adeeb0251fc3
selftests: Add a basic HSR test.

This test adds a basic HSRv0 network with 3 nodes. In its current shape
it sends and forwards packets, announcements and so merges nodes based
on MAC A/B information.
It is able to detect duplicate packets and packetloss should any occur.

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/Makefile
tools/testing/selftests/net/hsr/Makefile [new file with mode: 0644]
tools/testing/selftests/net/hsr/config [new file with mode: 0644]
tools/testing/selftests/net/hsr/hsr_ping.sh [new file with mode: 0755]