Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2025 09:55:22 GMT
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 836c8dad4544 - stable/14 - routing: set net.route.multipath=0 when kernel doesn't have ROUTE_MPATH
Message-ID:  <202503070955.5279tMkX084760@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by ae:

URL: https://cgit.FreeBSD.org/src/commit/?id=836c8dad4544da568d50918a575ec309315300e7

commit 836c8dad4544da568d50918a575ec309315300e7
Author:     Andrey V. Elsukov <ae@FreeBSD.org>
AuthorDate: 2025-02-28 14:05:47 +0000
Commit:     Andrey V. Elsukov <ae@FreeBSD.org>
CommitDate: 2025-03-07 09:54:05 +0000

    routing: set net.route.multipath=0 when kernel doesn't have ROUTE_MPATH
    
    (cherry picked from commit f2644d64b40f611fd4d4f66069ad8d6cf33f69df)
---
 sys/net/route/route_ctl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
index d7756f2a0eb6..e5ddd7782e1e 100644
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -109,10 +109,11 @@ SYSCTL_DECL(_net_route);
 #define	V_rib_route_multipath	VNET(rib_route_multipath)
 #ifdef ROUTE_MPATH
 #define _MP_FLAGS	CTLFLAG_RW
+VNET_DEFINE(u_int, rib_route_multipath) = 1;
 #else
 #define _MP_FLAGS	CTLFLAG_RD
+VNET_DEFINE(u_int, rib_route_multipath) = 0;
 #endif
-VNET_DEFINE(u_int, rib_route_multipath) = 1;
 SYSCTL_UINT(_net_route, OID_AUTO, multipath, _MP_FLAGS | CTLFLAG_VNET,
     &VNET_NAME(rib_route_multipath), 0, "Enable route multipath");
 #undef _MP_FLAGS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202503070955.5279tMkX084760>