From nobody Tue Jan 21 15:41:40 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YcrzS4fbtz5lFYj; Tue, 21 Jan 2025 15:41:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YcrzS3nGFz3D2f; Tue, 21 Jan 2025 15:41:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737474100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zTrmjbpwjb4FL1JBLXpgUOAcAOIPcrtiZbsES4xUjvs=; b=k1N48mX+ta/pyqyoZh2VOiw8RnN1w+DtjoxizByxxPk430KNqdoNGmREeXKalTUJCTEqux HAmb59mdG38TRyZJ/YrJ/aTOQxDNHSYJ2V5kb4amYJggJQff4zCtB7FQvGLtwrMgoZSZuo mfduAfEz1gqT8qos6RuOM+Ur78GM8tQDY55x87otginIZ5nZhoVOBN3lYBJIMJvRS8HAGi iA90Zi6rJmfdI094oETouNofGWWslyJnbUuiH6RTQm34Y3qah9Qmw8Pggg0k0DVCTRK5LW Ilvn6a2au92B5za0njz2DROJK0MDE1lDEeYIDZBQ1whu06xgr/6KLTRlDIdf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737474100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zTrmjbpwjb4FL1JBLXpgUOAcAOIPcrtiZbsES4xUjvs=; b=aMFbMS+SEw0MtUE92bBgTJLJOFC4ZVwcVuo4ZG43AsgumGYyXr1YbStGBpN7Kdew00+zIK yeSo5n7o2w+xw/WucvfFzO/BnJUbS+kbLOm5klxCimfxCb+FyS1zZDv/2oK5l9AXHjSr8J EgD4FehBd7Y8KH8aem8w4t1mj3TBRY5+ws6nEZItY6EXfucFkJn61TliivRhLTEGF40sU3 luhbse1ZI3y49hhiOC8tC+hMGLftKrEQyaIyrdpLOBf8OkPM2l+HBOp9bqCRNdYzzJ4bU3 lkZcNS/oeYjhzJ8EkSvW5ahwSZlVFUzyjffd52g1YjGTOHbhjnBnHbcLjfvSMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737474100; a=rsa-sha256; cv=none; b=Imc4Oa8UJ+dWfCVjtuc8pTojWECj25TEY1/vevapOoAfVtiTWI2K8YBteHjmYIjeFKAEqW I7VsTyLoODAkb+mMvbZcOUrGRc9bkb8EKuvb1+slKMU4N+m2H5hxNQtlbYfbwZEnsXyu6Z fnrIzJaxvzLzon3hy+/GiVDijUJxTN9NE4Dks8T4Ezn5gCyRyofNMkpAQSHA/WzVhUC5xA 6tidnsrkVjEKk5j7tglww/5WBbAArLJMgna8myxRrlM91c1pC5aYGxwt6W+/eOaTfHkffl FoniQ8YioMDOJ2Zg8KLfjPqyesPgscg0X0x7GRymwD7CQhZ/Kve1pkCgf6wfUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YcrzS3Jfcz1Brb; Tue, 21 Jan 2025 15:41:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50LFfeOq028829; Tue, 21 Jan 2025 15:41:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50LFfe8b028826; Tue, 21 Jan 2025 15:41:40 GMT (envelope-from git) Date: Tue, 21 Jan 2025 15:41:40 GMT Message-Id: <202501211541.50LFfe8b028826@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 010ee8215f5c - main - setfib.2: Note that the number of FIBs can be adjusted after boot List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 010ee8215f5c899e23250828402af5b7bb354328 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=010ee8215f5c899e23250828402af5b7bb354328 commit 010ee8215f5c899e23250828402af5b7bb354328 Author: Mark Johnston AuthorDate: 2025-01-21 15:39:50 +0000 Commit: Mark Johnston CommitDate: 2025-01-21 15:39:50 +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 --- lib/libsys/setfib.2 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/libsys/setfib.2 b/lib/libsys/setfib.2 index 32e2f64910cb..57e83c0d1adb 100644 --- a/lib/libsys/setfib.2 +++ b/lib/libsys/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