svn commit: r364465 - in head/sys: conf net net/route

Jung-uk Kim jkim at FreeBSD.org
Fri Aug 21 23:30:52 UTC 2020


On 20. 8. 21., Alexander V. Chernikov wrote:
> Author: melifaro
> Date: Fri Aug 21 21:34:52 2020
> New Revision: 364465
> URL: https://svnweb.freebsd.org/changeset/base/364465
> 
> Log:
>   Make net.fibs growable.
>   
>   Allow to dynamically grow the amount of fibs in each vnet.
>   
>   This change alters current behavior. Currently, if one defines
>    ROUTETABLES > 1 in the kernel config, each vnet will be created
>    with the number of fibs defined in the kernel config.
>    After this commit vnets will be created with fibs=1.
>   
>   Dynamic net.fibs is not compatible with net.add_addr_allfibs.
>    The plan is to deprecate the latter and make
>    net.add_addr_allfibs=0 default behaviour.
>   
>   Reviewed by:	glebius
>   Relnotes:	yes
>   Differential Revision:	https://reviews.freebsd.org/D26062
> 
> Added:
>   head/sys/net/route/route_tables.c   (contents, props changed)
> Modified:
>   head/sys/conf/files
>   head/sys/net/route.c
>   head/sys/net/route.h
>   head/sys/net/route/route_var.h

...

This commit broke the kernel build and the following patch fixed it for me.

Index: sys/net/route/route_tables.c
===================================================================
--- sys/net/route/route_tables.c        (revision 364466)
+++ sys/net/route/route_tables.c        (working copy)
@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/jail.h>
 #include <sys/sysctl.h>
 #include <sys/syslog.h>
+#include <sys/proc.h>
 #include <sys/kernel.h>
 #include <sys/lock.h>
 #include <sys/sx.h>

Jung-uk Kim


More information about the svn-src-all mailing list