svn commit: r307897 - head/sys/dev/bxe
Bryan Drewery
bdrewery at FreeBSD.org
Tue Oct 25 03:55:57 UTC 2016
Author: bdrewery
Date: Tue Oct 25 03:55:56 2016
New Revision: 307897
URL: https://svnweb.freebsd.org/changeset/base/307897
Log:
Use proper if_getdrvflags() API.
This is a NOP.
Sponsored by: Dell EMC Isilon
Modified:
head/sys/dev/bxe/bxe.c
Modified: head/sys/dev/bxe/bxe.c
==============================================================================
--- head/sys/dev/bxe/bxe.c Tue Oct 25 03:34:24 2016 (r307896)
+++ head/sys/dev/bxe/bxe.c Tue Oct 25 03:55:56 2016 (r307897)
@@ -5603,7 +5603,7 @@ bxe_tx_start(if_t ifp)
fp = &sc->fp[0];
- if (ifp->if_drv_flags & IFF_DRV_OACTIVE) {
+ if (if_getdrvflags(ifp) & IFF_DRV_OACTIVE) {
fp->eth_q_stats.tx_queue_full_return++;
return;
}
@@ -5643,7 +5643,7 @@ bxe_tx_mq_start_locked(struct bxe_softc
}
}
- if (!sc->link_vars.link_up || !(ifp->if_drv_flags & IFF_DRV_RUNNING)) {
+ if (!sc->link_vars.link_up || !(if_getdrvflags(ifp) & IFF_DRV_RUNNING)) {
fp->eth_q_stats.tx_request_link_down_failures++;
goto bxe_tx_mq_start_locked_exit;
}
More information about the svn-src-head
mailing list