git: 1134a9ab7087 - stable/15 - iflib: ifdef iflib_simple_transmit and iflib_simple_select_queue on ALTQ
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Oct 2026 06:02:57 UTC
The branch stable/15 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=1134a9ab708793bec7239c3d53376daf2a67e75b
commit 1134a9ab708793bec7239c3d53376daf2a67e75b
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-09-29 15:13:06 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-10-29 05:27:47 +0000
iflib: ifdef iflib_simple_transmit and iflib_simple_select_queue on ALTQ
Otherwise builds warn about them being unused.
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 6cb542e31bef5fe6e3867b4cfb608f4caeef076d)
---
sys/net/iflib.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index e27479b9f529..a644378ec10c 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -176,7 +176,9 @@ enum iflib_pm_state {
static void iru_init(if_rxd_update_t iru, iflib_rxq_t rxq, uint8_t flid);
static void iflib_timer(void *arg);
static void iflib_tqg_detach(if_ctx_t ctx);
+#ifndef ALTQ
static int iflib_simple_transmit(if_t ifp, struct mbuf *m);
+#endif
typedef struct iflib_filter_info {
driver_filter_t *ifi_filter;
@@ -7500,7 +7502,7 @@ iflib_debugnet_poll(if_t ifp, int count)
}
#endif /* DEBUGNET */
-
+#ifndef ALTQ
static inline iflib_txq_t
iflib_simple_select_queue(if_ctx_t ctx, struct mbuf *m)
{
@@ -7549,3 +7551,4 @@ iflib_simple_transmit(if_t ifp, struct mbuf *m)
return (error);
}
+#endif