]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: rtnetlink: Add operational state test
authorIdo Schimmel <idosch@nvidia.com>
Thu, 17 Jul 2025 12:51:51 +0000 (15:51 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 19 Jul 2025 00:22:40 +0000 (17:22 -0700)
commit25250f40e2a9cade7ef294af8bee0b2bd0afca2d
tree049a7818307eeb19bbd5378905b706523e102fa0
parente7ce59d9205e3842d0931632372aaf9fb4d901cf
selftests: rtnetlink: Add operational state test

Virtual devices (e.g., VXLAN) that do not have a notion of a carrier are
created with an "UNKNOWN" operational state which some users find
confusing [1].

It is possible to set the operational state from user space either
during device creation or afterwards and some applications will start
doing that in order to avoid the above problem.

Add a test for this functionality to ensure it does not regress.

[1] https://lore.kernel.org/netdev/20241119153703.71f97b76@hermes.local/

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250717125151.466882-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/rtnetlink.sh