sfxge_tx.h (278255) | sfxge_tx.h (278938) |
---|---|
1/*- 2 * Copyright (c) 2010-2011 Solarflare Communications, Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2010-2011 Solarflare Communications, Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/sfxge/sfxge_tx.h 278255 2015-02-05 12:10:23Z arybchik $ | 29 * $FreeBSD: head/sys/dev/sfxge/sfxge_tx.h 278938 2015-02-18 06:19:35Z arybchik $ |
30 */ 31 32#ifndef _SFXGE_TX_H 33#define _SFXGE_TX_H 34 35#include <netinet/in.h> 36#include <netinet/ip.h> 37#include <netinet/tcp.h> --- 81 unchanged lines hidden (view full) --- 119}; 120 121#define SFXGE_TXQ_UNBLOCK_LEVEL(_entries) (EFX_TXQ_LIMIT(_entries) / 4) 122 123#define SFXGE_TX_BATCH 64 124 125#ifdef SFXGE_HAVE_MQ 126#define SFXGE_TX_LOCK(txq) (&(txq)->lock) | 30 */ 31 32#ifndef _SFXGE_TX_H 33#define _SFXGE_TX_H 34 35#include <netinet/in.h> 36#include <netinet/ip.h> 37#include <netinet/tcp.h> --- 81 unchanged lines hidden (view full) --- 119}; 120 121#define SFXGE_TXQ_UNBLOCK_LEVEL(_entries) (EFX_TXQ_LIMIT(_entries) / 4) 122 123#define SFXGE_TX_BATCH 64 124 125#ifdef SFXGE_HAVE_MQ 126#define SFXGE_TX_LOCK(txq) (&(txq)->lock) |
127#define SFXGE_TX_SCALE(sc) ((sc)->intr.n_alloc) | |
128#else 129#define SFXGE_TX_LOCK(txq) (&(txq)->sc->tx_lock) | 127#else 128#define SFXGE_TX_LOCK(txq) (&(txq)->sc->tx_lock) |
130#define SFXGE_TX_SCALE(sc) 1 | |
131#endif 132 133#define SFXGE_TXQ_LOCK_INIT(_txq, _ifname, _txq_index) \ 134 do { \ 135 struct sfxge_txq *__txq = (_txq); \ 136 \ 137 snprintf((__txq)->lock_name, \ 138 sizeof((__txq)->lock_name), \ --- 94 unchanged lines hidden --- | 129#endif 130 131#define SFXGE_TXQ_LOCK_INIT(_txq, _ifname, _txq_index) \ 132 do { \ 133 struct sfxge_txq *__txq = (_txq); \ 134 \ 135 snprintf((__txq)->lock_name, \ 136 sizeof((__txq)->lock_name), \ --- 94 unchanged lines hidden --- |