ixlv(4): Fix ixlv(4) not loading when loaded as a kernel module and netmap is enabled.

Define (unused) netmap variables; ixlv(4) doesn't support netmap yet.

Reported by:	sergey.kozlov@intel.com
Sponsored by:	Intel Corporation
This commit is contained in:
erj 2016-08-20 00:08:10 +00:00
parent 4bb61676bd
commit 12b75752aa

View File

@ -217,6 +217,10 @@ TUNABLE_INT("hw.ixlv.tx_itr", &ixlv_tx_itr);
SYSCTL_INT(_hw_ixlv, OID_AUTO, tx_itr, CTLFLAG_RDTUN,
&ixlv_tx_itr, 0, "TX Interrupt Rate");
/* Fix when building as a standalone module when netmap is enabled */
#if defined(DEV_NETMAP) && !defined(NETMAP_IXL_MAIN)
int ixl_rx_miss, ixl_rx_miss_bufs, ixl_crcstrip;
#endif
/*********************************************************************
* Device identification routine