socsvn commit: r306429 - soc2016/vincenzo/head/sys/dev/netmap

vincenzo at FreeBSD.org vincenzo at FreeBSD.org
Mon Jul 18 09:12:48 UTC 2016


Author: vincenzo
Date: Mon Jul 18 09:12:47 2016
New Revision: 306429
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=306429

Log:
   netmap_mem: netmap_initialized only used in FreeBSD

Modified:
  soc2016/vincenzo/head/sys/dev/netmap/netmap_mem2.c

Modified: soc2016/vincenzo/head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- soc2016/vincenzo/head/sys/dev/netmap/netmap_mem2.c	Mon Jul 18 09:12:34 2016	(r306428)
+++ soc2016/vincenzo/head/sys/dev/netmap/netmap_mem2.c	Mon Jul 18 09:12:47 2016	(r306429)
@@ -562,15 +562,19 @@
 	return ret;
 }
 
+#if defined(__FreeBSD__)
 extern int netmap_initialized;
+#endif
 
 static void
 nm_mem_release_id(struct netmap_mem_d *nmd)
 {
+#if defined(__FreeBSD__)
 	if (!netmap_initialized) {
 		D("skip, nm_mem could be gone");
 		return;
 	}
+#endif
 	NMA_LOCK(&nm_mem);
 
 	nmd->prev->next = nmd->next;


More information about the svn-soc-all mailing list