Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2014 21:29:00 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268856 - head/sys/dev/bxe
Message-ID:  <201407182129.s6ILT0S2098258@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Jul 18 21:28:59 2014
New Revision: 268856
URL: http://svnweb.freebsd.org/changeset/base/268856

Log:
  Fix build by using the driver API (driver converted in r266979 which should
  be upstreamed).
  
  X-MFC with:	r268854
  MFC after:	5 days

Modified:
  head/sys/dev/bxe/bxe_stats.c

Modified: head/sys/dev/bxe/bxe_stats.c
==============================================================================
--- head/sys/dev/bxe/bxe_stats.c	Fri Jul 18 20:41:40 2014	(r268855)
+++ head/sys/dev/bxe/bxe_stats.c	Fri Jul 18 21:28:59 2014	(r268856)
@@ -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);
 		}



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