git: d1695bbd48cc - main - iflib: prefer simple_tx over mp_ring
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Nov 2026 17:12:36 UTC
The branch main has been updated by gallatin:
URL: https://cgit.FreeBSD.org/src/commit/?id=d1695bbd48ccef6cd922be5fc089345954e87e42
commit d1695bbd48ccef6cd922be5fc089345954e87e42
Author: Andrew Gallatin <gallatin@FreeBSD.org>
AuthorDate: 2026-11-04 16:56:04 +0000
Commit: Andrew Gallatin <gallatin@FreeBSD.org>
CommitDate: 2026-11-04 17:12:14 +0000
iflib: prefer simple_tx over mp_ring
In preparation for removing mp_ring, enable simple_tx by default.
Users encountering bugs are still able to set the tunable:
net.iflib.prefer_mpring="1"
at boot, but are encouraged to report any regressions so they
can be fixed.
My plan is to remove mp_ring assuming no major bugs are found in
simple_tx after a month or two.
Reviewed by: kbowling, netchild, rcm
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D61166
---
share/man/man4/iflib.4 | 4 ++--
sys/net/iflib.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/share/man/man4/iflib.4 b/share/man/man4/iflib.4
index 2a752871d9a8..e5b45304e913 100644
--- a/share/man/man4/iflib.4
+++ b/share/man/man4/iflib.4
@@ -1,4 +1,4 @@
-.Dd September 16, 2026
+.Dd November 4, 2026
.Dt IFLIB 4
.Os
.Sh NAME
@@ -156,7 +156,7 @@ is loaded.
An explicitly configured per-device
.Va simple_tx
value takes precedence.
-The default is one.
+The default is zero.
.It Va net.iflib.simple_drain_quota
Sets the maximum number of packets that the transmit task may remove from a
simple transmit deferral ring in one drain operation.
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 6682ccbcfca8..77bcedf329eb 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -704,7 +704,7 @@ static int iflib_simple_txbr_size = IFLIB_SIMPLE_TXBR_SIZE;
SYSCTL_INT(_net_iflib, OID_AUTO, simple_txbr_size, CTLFLAG_RDTUN,
&iflib_simple_txbr_size, 0,
"number of entries in the simple tx deferral ring");
-static bool iflib_prefer_mpring = true;
+static bool iflib_prefer_mpring = false;
SYSCTL_BOOL(_net_iflib, OID_AUTO, prefer_mpring, CTLFLAG_RDTUN,
&iflib_prefer_mpring, 0,
"prefer the mp_ring transmit path by default");