]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netconsole: selftests: Create a new netconsole selftest
authorBreno Leitao <leitao@debian.org>
Thu, 22 Aug 2024 09:56:39 +0000 (02:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Aug 2024 16:27:15 +0000 (09:27 -0700)
commitb494b1673889c95ead43fb6978687fb61bb042d5
tree46e2b212ff1468eebb1903425079fc1f8cdb6a94
parent9f08ae4ffa39824b2e950fb57b7d8ccf07788e4f
net: netconsole: selftests: Create a new netconsole selftest

Adds a selftest that creates two virtual interfaces, assigns one to a
new namespace, and assigns IP addresses to both.

It listens on the destination interface using socat and configures a
dynamic target on netconsole, pointing to the destination IP address.

The test then checks if the message was received properly on the
destination interface.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240822095652.3806208-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
MAINTAINERS
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/config
tools/testing/selftests/drivers/net/netcons_basic.sh [new file with mode: 0755]