aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2025-09-29 15:13:06 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2025-09-29 15:13:06 +0000
commit6cb542e31bef5fe6e3867b4cfb608f4caeef076d (patch)
tree51bed415ef74afab615be3c4c9e087be4e7728fe
parenta02f38ccedc2c648d57fb6e575723b0b31b67ea0 (diff)
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")
-rw-r--r--sys/net/iflib.c5
1 files changed, 4 insertions, 1 deletions
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