]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest: add selftest for anycast notifications
authorYuyang Huang <yuyanghuang@google.com>
Thu, 19 Jun 2025 03:51:16 +0000 (12:51 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jun 2025 16:32:04 +0000 (17:32 +0100)
commit14966a8df77e2dffdf765b56abe194aa6b0da325
tree92615d2810cc83a9f6a1e43b3edc807fe448a7f0
parent091d019adce033118776ef93b50a268f715ae8f6
selftest: add selftest for anycast notifications

This commit adds a new kernel selftest to verify RTNLGRP_IPV6_ACADDR
notifications. The test works by adding/removing a dummy interface,
enabling packet forwarding, and then confirming that user space can
correctly receive anycast notifications.

The test relies on the iproute2 version to be 6.13+.

Tested by the following command:
$ vng -v --user root --cpus 16 -- \
make -C tools/testing/selftests TARGETS=net
TEST_PROGS=rtnetlink_notification.sh \
TEST_GEN_PROGS="" run_tests

Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink_notification.sh