From 12b75752aae59c5a1f5f7bae7d4cccad65fe1cc8 Mon Sep 17 00:00:00 2001 From: erj Date: Sat, 20 Aug 2016 00:08:10 +0000 Subject: [PATCH] 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 --- sys/dev/ixl/if_ixlv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ixl/if_ixlv.c b/sys/dev/ixl/if_ixlv.c index 9c70d79816c..c230338bbbe 100644 --- a/sys/dev/ixl/if_ixlv.c +++ b/sys/dev/ixl/if_ixlv.c @@ -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 -- 2.45.2