bxe.h (302408) | bxe.h (307972) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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#ifndef __BXE_H__ 28#define __BXE_H__ 29 30#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 --- 14 unchanged lines hidden (view full) --- 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#ifndef __BXE_H__ 28#define __BXE_H__ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.h 298294 2016-04-19 20:28:30Z davidcs $"); | 31__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.h 307972 2016-10-26 17:53:12Z davidcs $"); |
32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/systm.h> 36#include <sys/lock.h> 37#include <sys/mutex.h> 38#include <sys/sx.h> 39#include <sys/module.h> --- 599 unchanged lines hidden (view full) --- 639 uint8_t index; /* this is also the 'cid' */ 640#define FP_IDX(fp) (fp->index) 641 642 /* interrupt taskqueue (fast) */ 643 struct task tq_task; 644 struct taskqueue *tq; 645 char tq_name[32]; 646 | 32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/systm.h> 36#include <sys/lock.h> 37#include <sys/mutex.h> 38#include <sys/sx.h> 39#include <sys/module.h> --- 599 unchanged lines hidden (view full) --- 639 uint8_t index; /* this is also the 'cid' */ 640#define FP_IDX(fp) (fp->index) 641 642 /* interrupt taskqueue (fast) */ 643 struct task tq_task; 644 struct taskqueue *tq; 645 char tq_name[32]; 646 |
647 struct task tx_task; 648 struct timeout_task tx_timeout_task; 649 |
|
647 /* ethernet client ID (each fastpath set of RX/TX/CQE is a client) */ 648 uint8_t cl_id; 649#define FP_CL_ID(fp) (fp->cl_id) 650 uint8_t cl_qzone_id; 651 652 uint16_t fp_hc_idx; 653 654 /* driver copy of the receive buffer descriptor prod/cons indices */ --- 1640 unchanged lines hidden (view full) --- 2295 2296void bxe_dump_mem(struct bxe_softc *sc, char *tag, 2297 uint8_t *mem, uint32_t len); 2298void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag, 2299 struct mbuf *m, uint8_t contents); 2300extern int bxe_grc_dump(struct bxe_softc *sc); 2301 2302#if __FreeBSD_version >= 800000 | 650 /* ethernet client ID (each fastpath set of RX/TX/CQE is a client) */ 651 uint8_t cl_id; 652#define FP_CL_ID(fp) (fp->cl_id) 653 uint8_t cl_qzone_id; 654 655 uint16_t fp_hc_idx; 656 657 /* driver copy of the receive buffer descriptor prod/cons indices */ --- 1640 unchanged lines hidden (view full) --- 2298 2299void bxe_dump_mem(struct bxe_softc *sc, char *tag, 2300 uint8_t *mem, uint32_t len); 2301void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag, 2302 struct mbuf *m, uint8_t contents); 2303extern int bxe_grc_dump(struct bxe_softc *sc); 2304 2305#if __FreeBSD_version >= 800000 |
2303#if __FreeBSD_version >= 1000000 | 2306#if (__FreeBSD_version >= 1001513 && __FreeBSD_version < 1100000) ||\ 2307 __FreeBSD_version >= 1100048 |
2304#define BXE_SET_FLOWID(m) M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE) 2305#define BXE_VALID_FLOWID(m) (M_HASHTYPE_GET(m) != M_HASHTYPE_NONE) 2306#else 2307#define BXE_VALID_FLOWID(m) ((m->m_flags & M_FLOWID) != 0) 2308#define BXE_SET_FLOWID(m) m->m_flags |= M_FLOWID 2309#endif 2310#endif /* #if __FreeBSD_version >= 800000 */ 2311 --- 171 unchanged lines hidden --- | 2308#define BXE_SET_FLOWID(m) M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE) 2309#define BXE_VALID_FLOWID(m) (M_HASHTYPE_GET(m) != M_HASHTYPE_NONE) 2310#else 2311#define BXE_VALID_FLOWID(m) ((m->m_flags & M_FLOWID) != 0) 2312#define BXE_SET_FLOWID(m) m->m_flags |= M_FLOWID 2313#endif 2314#endif /* #if __FreeBSD_version >= 800000 */ 2315 --- 171 unchanged lines hidden --- |