diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2026-08-14 22:54:21 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2026-08-14 22:56:35 +0000 |
| commit | 06aaca43fe05d22cd289af9b6fa751b9bd08b560 (patch) | |
| tree | 9374299904a41eef4f866c1ab655b118e28feb4b | |
| parent | b4208a67edc2eb7898a9ff2a6f3990c6852910e4 (diff) | |
iflib: actually disable simple_tx when ALTQ is in use
When getting some baseline ALTQ numbers, I noticed that
if simlple_tx is enabled in kenv, we wind up re-setting the transmit
routine, but I neglected to actually clear ctx->ifc_sysctl_simple_tx.
That leads to many different panics as we run a mixture of mp_ring
and simple_tx.
Pointy-hat to: gallatin
Sponsored by: Netflix
| -rw-r--r-- | sys/net/iflib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c index d4e23a70d569..c8662b6b7e69 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -5285,6 +5285,7 @@ iflib_device_register(device_t dev, void *sc, if_shared_ctx_t sctx, if_ctx_t *ct device_printf(dev, "using simple if_transmit\n"); #else device_printf(dev, "ALTQ prevents using simple if_transmit\n"); + ctx->ifc_sysctl_simple_tx = 0; #endif } iflib_reset_qvalues(ctx); |
