From d40e88fd02ccbc07a5e0c7e3cb8a75dee830d1b8 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Wed, 3 Dec 2025 11:19:47 +0100 Subject: [PATCH] test-link: test bond with use_carrier=1 `use_carrier` is removed from kernel since 6.18 [1], and returns the following error if set to 0: > option obsolete, use_carrier cannot be disabled This causes a failure of test-link-linux, so let's set it to 1. [1] https://lore.kernel.org/all/2029487.1756512517@famine/ --- src/core/platform/tests/test-link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/platform/tests/test-link.c b/src/core/platform/tests/test-link.c index fab6bd2efe..77e7e64121 100644 --- a/src/core/platform/tests/test-link.c +++ b/src/core/platform/tests/test-link.c @@ -123,7 +123,8 @@ software_add(NMLinkType link_type, const char *name) gboolean bond0_exists = !!nm_platform_link_get_by_ifname(NM_PLATFORM_GET, "bond0"); int r; const NMPlatformLnkBond nm_platform_lnk_bond_default = { - .mode = nmtst_rand_select(3, 1), + .mode = nmtst_rand_select(3, 1), + .use_carrier = 1, }; r = nm_platform_link_bond_add(NM_PLATFORM_GET, name, &nm_platform_lnk_bond_default, NULL);