svn commit: r293074 - user/ngie/stable-10-libnv/sys/dev/ixl

Garrett Cooper ngie at FreeBSD.org
Sun Jan 3 06:12:55 UTC 2016


Author: ngie
Date: Sun Jan  3 06:12:53 2016
New Revision: 293074
URL: https://svnweb.freebsd.org/changeset/base/293074

Log:
  Fix module compilation pre-r266974
  
  if_getdrvflags(9) wasn't available until __FreeBSD_version > 1100022,
  and backporting r266974 opens a huge can of KPI worms

Modified:
  user/ngie/stable-10-libnv/sys/dev/ixl/if_ixl.c

Modified: user/ngie/stable-10-libnv/sys/dev/ixl/if_ixl.c
==============================================================================
--- user/ngie/stable-10-libnv/sys/dev/ixl/if_ixl.c	Sun Jan  3 06:02:56 2016	(r293073)
+++ user/ngie/stable-10-libnv/sys/dev/ixl/if_ixl.c	Sun Jan  3 06:12:53 2016	(r293074)
@@ -6619,7 +6619,11 @@ ixl_uninit_iov(device_t dev)
 		pf->veb_seid = 0;
 	}
 
+#if __FreeBSD_version > 1100022
 	if ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0)
+#else
+	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
+#endif
 		ixl_disable_intr(vsi);
 
 	vfs = pf->vfs;


More information about the svn-src-user mailing list