sfxge_tx.h (272328) | sfxge_tx.h (272330) |
---|---|
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 272328 2014-09-30 20:36:07Z gnn $ | 29 * $FreeBSD: head/sys/dev/sfxge/sfxge_tx.h 272330 2014-09-30 20:43:21Z gnn $ |
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> --- 39 unchanged lines hidden (view full) --- 77 78#define SFXGE_TX_DPL_GET_PKT_LIMIT_DEFAULT 64 79#define SFXGE_TX_DPL_PUT_PKT_LIMIT_DEFAULT 64 80 81/* 82 * Deferred packet list. 83 */ 84struct sfxge_tx_dpl { | 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> --- 39 unchanged lines hidden (view full) --- 77 78#define SFXGE_TX_DPL_GET_PKT_LIMIT_DEFAULT 64 79#define SFXGE_TX_DPL_PUT_PKT_LIMIT_DEFAULT 64 80 81/* 82 * Deferred packet list. 83 */ 84struct sfxge_tx_dpl { |
85 uintptr_t std_put; /* Head of put list. */ 86 struct mbuf *std_get; /* Head of get list. */ 87 struct mbuf **std_getp; /* Tail of get list. */ 88 unsigned int std_count; /* Count of packets. */ | 85 uintptr_t std_put; /* Head of put list. */ 86 struct mbuf *std_get; /* Head of get list. */ 87 struct mbuf **std_getp; /* Tail of get list. */ 88 unsigned int std_get_count; /* Packets in get list. */ |
89}; 90 91 92#define SFXGE_TX_BUFFER_SIZE 0x400 93#define SFXGE_TX_HEADER_SIZE 0x100 94#define SFXGE_TX_COPY_THRESHOLD 0x200 95 96enum sfxge_txq_state { --- 93 unchanged lines hidden --- | 89}; 90 91 92#define SFXGE_TX_BUFFER_SIZE 0x400 93#define SFXGE_TX_HEADER_SIZE 0x100 94#define SFXGE_TX_COPY_THRESHOLD 0x200 95 96enum sfxge_txq_state { --- 93 unchanged lines hidden --- |