From owner-svn-src-head@FreeBSD.ORG Fri Jul 18 21:29:00 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7CA4B9CD; Fri, 18 Jul 2014 21:29:00 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AB9F20F3; Fri, 18 Jul 2014 21:29:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6ILT0rb098259; Fri, 18 Jul 2014 21:29:00 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6ILT0S2098258; Fri, 18 Jul 2014 21:29:00 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201407182129.s6ILT0S2098258@svn.freebsd.org> From: Xin LI Date: Fri, 18 Jul 2014 21:29:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268856 - head/sys/dev/bxe X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 21:29:00 -0000 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); }