summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2016-07-20 22:28:26 +0000
committersbruno <sbruno@FreeBSD.org>2016-07-20 22:28:26 +0000
commitf4e5f944330cf61e70b6d4c75d58d6826f7f4fc3 (patch)
tree29e30acd13b7b0b0f4767e03ec508841fa3f6582
parent6e4ce2c512d4f0bfe68a7064025acf48d6b293f7 (diff)
downloadFreeBSD-src-f4e5f944330cf61e70b6d4c75d58d6826f7f4fc3.zip
FreeBSD-src-f4e5f944330cf61e70b6d4c75d58d6826f7f4fc3.tar.gz
Fix em(4) build after r303107
Reported by: Jason Wolf <j@nitrology.com>
-rw-r--r--sys/dev/e1000/if_em.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index f639590..bd4923c 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -1220,7 +1220,7 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
ifp->if_mtu = ifr->ifr_mtu;
adapter->hw.mac.max_frame_size =
ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN;
- if (if_getdrvflags(ifp) & IFF_DRV_RUNNING)
+ if (ifp->if_drv_flags & IFF_DRV_RUNNING)
em_init_locked(adapter);
EM_CORE_UNLOCK(adapter);
break;
OpenPOWER on IntegriCloud