git: 6cb542e31bef - main - iflib: ifdef iflib_simple_transmit and iflib_simple_select_queue on ALTQ
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Sep 2025 15:13:52 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=6cb542e31bef5fe6e3867b4cfb608f4caeef076d
commit 6cb542e31bef5fe6e3867b4cfb608f4caeef076d
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-09-29 15:13:06 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2025-09-29 15:13:06 +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")
---
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 1e6d98291c04..e2005aa28c5c 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -142,7 +142,9 @@ struct iflib_ctx;
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;
@@ -7117,7 +7119,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)
{
@@ -7166,3 +7168,4 @@ iflib_simple_transmit(if_t ifp, struct mbuf *m)
return (error);
}
+#endif