bxe_stats.c (268854) | bxe_stats.c (268856) |
---|---|
1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe_stats.c 268854 2014-07-18 20:04:11Z davidcs $"); | 28__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe_stats.c 268856 2014-07-18 21:28:59Z delphij $"); |
29 30#include "bxe.h" 31#include "bxe_stats.h" 32 33#ifdef __i386__ 34#define BITS_PER_LONG 32 35#else 36#define BITS_PER_LONG 64 --- 1260 unchanged lines hidden (view full) --- 1297 } 1298 1299 if (sc->port.pmf) { 1300 bxe_hw_stats_update(sc); 1301 } 1302 1303 if (bxe_storm_stats_update(sc)) { 1304 if (sc->stats_pending++ == 3) { | 29 30#include "bxe.h" 31#include "bxe_stats.h" 32 33#ifdef __i386__ 34#define BITS_PER_LONG 32 35#else 36#define BITS_PER_LONG 64 --- 1260 unchanged lines hidden (view full) --- 1297 } 1298 1299 if (sc->port.pmf) { 1300 bxe_hw_stats_update(sc); 1301 } 1302 1303 if (bxe_storm_stats_update(sc)) { 1304 if (sc->stats_pending++ == 3) { |
1305 if (sc->ifnet->if_drv_flags & IFF_DRV_RUNNING) { | 1305 if (if_getdrvflags(sc->ifp) & IFF_DRV_RUNNING) { |
1306 atomic_store_rel_long(&sc->chip_tq_flags, CHIP_TQ_REINIT); 1307 taskqueue_enqueue(sc->chip_tq, &sc->chip_tq_task); 1308 } 1309 } 1310 return; 1311 } 1312 } else { 1313 /* --- 722 unchanged lines hidden --- | 1306 atomic_store_rel_long(&sc->chip_tq_flags, CHIP_TQ_REINIT); 1307 taskqueue_enqueue(sc->chip_tq, &sc->chip_tq_task); 1308 } 1309 } 1310 return; 1311 } 1312 } else { 1313 /* --- 722 unchanged lines hidden --- |