Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2020 11:04:25 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364950 - head/sys/net/route
Message-ID:  <202008291104.07TB4PHE055370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Sat Aug 29 11:04:24 2020
New Revision: 364950
URL: https://svnweb.freebsd.org/changeset/base/364950

Log:
  Fix build with RADIX_MPATH.
  
  Reported by:	Hartmann, O <ohartmann@walstatt.org>

Modified:
  head/sys/net/route/route_ctl.c

Modified: head/sys/net/route/route_ctl.c
==============================================================================
--- head/sys/net/route/route_ctl.c	Sat Aug 29 09:59:52 2020	(r364949)
+++ head/sys/net/route/route_ctl.c	Sat Aug 29 11:04:24 2020	(r364950)
@@ -101,7 +101,7 @@ vnet_rtzone_init()
 {
 	
 	V_rtzone = uma_zcreate("rtentry", sizeof(struct rtentry),
-		NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+		NULL, NULL, NULL, NULL, UMA_ALIGN_CACHE, 0);
 }
 
 #ifdef VIMAGE
@@ -310,6 +310,7 @@ add_route(struct rib_head *rnh, struct rt_addrinfo *in
 
 	RIB_WLOCK(rnh);
 #ifdef RADIX_MPATH
+	netmask = info->rti_info[RTAX_NETMASK];
 	/* do not permit exactly the same dst/mask/gw pair */
 	if (rt_mpath_capable(rnh) &&
 		rt_mpath_conflict(rnh, rt, netmask)) {



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