diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c index 136291f83239..740f7709e5b2 100644 --- a/sys/dev/ixgbe/ixgbe.c +++ b/sys/dev/ixgbe/ixgbe.c @@ -3592,8 +3592,10 @@ ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) static void ixgbe_txeof(struct tx_ring *txr) { +#ifdef DEV_NETMAP struct adapter *adapter = txr->adapter; struct ifnet *ifp = adapter->ifp; +#endif u32 work, processed = 0; u16 limit = txr->process_limit; struct ixgbe_tx_buf *buf;