svn commit: r304510 - head/sys/dev/ixl

Eric Joyner erj at FreeBSD.org
Sat Aug 20 00:08:12 UTC 2016


Author: erj
Date: Sat Aug 20 00:08:10 2016
New Revision: 304510
URL: https://svnweb.freebsd.org/changeset/base/304510

Log:
  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 at intel.com
  Sponsored by:	Intel Corporation

Modified:
  head/sys/dev/ixl/if_ixlv.c

Modified: head/sys/dev/ixl/if_ixlv.c
==============================================================================
--- head/sys/dev/ixl/if_ixlv.c	Fri Aug 19 23:44:07 2016	(r304509)
+++ head/sys/dev/ixl/if_ixlv.c	Sat Aug 20 00:08:10 2016	(r304510)
@@ -217,6 +217,10 @@ TUNABLE_INT("hw.ixlv.tx_itr", &ixlv_tx_i
 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


More information about the svn-src-head mailing list