]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make net.fibs growable.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Fri, 21 Aug 2020 21:34:52 +0000 (21:34 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Fri, 21 Aug 2020 21:34:52 +0000 (21:34 +0000)
commitf5247a232a337c93c690068930f25503d4dab8e1
tree3421aeb15aa4edc41ba2f57b013ed6cc8e15cb96
parent19337211f83156c151fcc51dc48edc47b4b96cd6
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
sys/conf/files
sys/net/route.c
sys/net/route.h
sys/net/route/route_tables.c [new file with mode: 0644]
sys/net/route/route_var.h