diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-03 18:09:46 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-03 18:09:46 +0000 |
commit | e3d5f3b7b8186a06dfbbe22353568a1d8b8efb85 (patch) | |
tree | 2113ce5c251cd8f64eca9ef1cf77d4a4fcd5e264 /sys/dev/ixl | |
parent | 04d0965e7657c3b28109e5957b516aaecd72f4be (diff) | |
download | FreeBSD-src-e3d5f3b7b8186a06dfbbe22353568a1d8b8efb85.zip FreeBSD-src-e3d5f3b7b8186a06dfbbe22353568a1d8b8efb85.tar.gz |
Fix ixl(4) compilation with PCI_IOV pre-r266974
stable/10 doesn't have the if_getdrvflags(9) KPI. Reference the field in the
structure directly if the __FreeBSD_version is < 1100022, so the driver can
be built with PCI_IOV support on stable/10, without backporting all of
r266974 (which requires additional changes due to projects/ifnet, etc)
Differential Revision: https://reviews.freebsd.org/D4759
Reviewed by: erj, sbruno
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/dev/ixl')
-rw-r--r-- | sys/dev/ixl/if_ixl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index 0428140..505d4b4 100644 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -6606,7 +6606,11 @@ ixl_iov_uninit(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; |