Fix build by using the driver API (driver converted in r266979 which should

be upstreamed).

X-MFC with:	r268854
MFC after:	5 days
This commit is contained in:
delphij 2014-07-18 21:28:59 +00:00
parent 9db99dff71
commit b2a009daaf

View File

@ -1302,7 +1302,7 @@ bxe_stats_update(struct bxe_softc *sc)
if (bxe_storm_stats_update(sc)) {
if (sc->stats_pending++ == 3) {
if (sc->ifnet->if_drv_flags & IFF_DRV_RUNNING) {
if (if_getdrvflags(sc->ifp) & IFF_DRV_RUNNING) {
atomic_store_rel_long(&sc->chip_tq_flags, CHIP_TQ_REINIT);
taskqueue_enqueue(sc->chip_tq, &sc->chip_tq_task);
}