Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2025 14:46:59 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 028323d61649 - stable/14 - setfib.2: Note that the number of FIBs can be adjusted after boot
Message-ID:  <202502071446.517EkxN5002738@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=028323d616496e6244934917975835f326f82b00

commit 028323d616496e6244934917975835f326f82b00
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-01-21 15:39:50 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-02-07 14:46:53 +0000

    setfib.2: Note that the number of FIBs can be adjusted after boot
    
    Reviewed by:    zlei, imp
    MFC after:      2 weeks
    Sponsored by:   Klara, Inc.
    Sponsored by:   Stormshield
    Differential Revision:  https://reviews.freebsd.org/D48545
    
    (cherry picked from commit 010ee8215f5c899e23250828402af5b7bb354328)
---
 lib/libc/sys/setfib.2 | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/lib/libc/sys/setfib.2 b/lib/libc/sys/setfib.2
index 32e2f64910cb..57e83c0d1adb 100644
--- a/lib/libc/sys/setfib.2
+++ b/lib/libc/sys/setfib.2
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd March 19, 2012
+.Dd January 10, 2025
 .Dt SETFIB 2
 .Os
 .Sh NAME
@@ -55,15 +55,20 @@ The system maximum is set in the kernel configuration file with
 .Pp
 or in
 .Pa /boot/loader.conf
+or
+.Pa /etc/sysctl.conf
 with
 .Pp
 .Dl net.fibs= Ns Qq Em N
 .Pp
 where
 .Em N
-is an integer.
-This maximum is capped at 65536 due to the implementation storing
-the fib number in a 16-bit field in the
+is an integer smaller than 65536.
+Note that the number of FIBs may be increased after booting, but cannot be
+reduced.
+.Pp
+The maximum of 65536 is due to the implementation storing
+the FIB number in a 16-bit field in the
 .Xr mbuf 9
 packet header, however it is not suggested that one use such a large number
 as memory is allocated for every FIB regardless of whether it is used, and



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