Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2016 03:55:56 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307897 - head/sys/dev/bxe
Message-ID:  <201610250355.u9P3tuHQ069966@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610250355.u9P3tuHQ069966>