aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-10-26 23:37:09 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-10-26 23:42:48 +0000
commitb0993e3bcaec60701f3ae56df255433eb4bcd091 (patch)
treea3edd5846c66ce9d9b3679ebba7fdbb455783b70
parentcdbe3de5383706da0f6d3c29f1ec2dcfed366bf1 (diff)
downloadsrc-b0993e3bcaec.tar.gz
src-b0993e3bcaec.zip
if_ixv: fix build without NETMAP
Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/dev/ixgbe/if_ixv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c
index d5fe1a5c6b30..467a56e7269f 100644
--- a/sys/dev/ixgbe/if_ixv.c
+++ b/sys/dev/ixgbe/if_ixv.c
@@ -1373,7 +1373,9 @@ ixv_initialize_receive_units(if_ctx_t ctx)
struct ixgbe_softc *sc = iflib_get_softc(ctx);
if_softc_ctx_t scctx;
struct ixgbe_hw *hw = &sc->hw;
+#ifdef DEV_NETMAP
if_t ifp = iflib_get_ifp(ctx);
+#endif
struct ix_rx_queue *que = sc->rx_queues;
u32 bufsz, psrtype;