git: 3aedf015d1a3 - stable/14 - if_ixv: fix build without NETMAP
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Oct 2024 05:03:27 UTC
The branch stable/14 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=3aedf015d1a304184b48c3fce016dd9083dba790
commit 3aedf015d1a304184b48c3fce016dd9083dba790
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-26 23:37:09 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-10-29 05:03:00 +0000
if_ixv: fix build without NETMAP
Sponsored by: The FreeBSD Foundation
(cherry picked from commit b0993e3bcaec60701f3ae56df255433eb4bcd091)
---
sys/dev/ixgbe/if_ixv.c | 2 ++
1 file changed, 2 insertions(+)
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;