Deleted Added
full compact
sfxge_rx.h (272325) sfxge_rx.h (272328)
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_rx.h 272325 2014-09-30 20:18:10Z gnn $
29 * $FreeBSD: head/sys/dev/sfxge/sfxge_rx.h 272328 2014-09-30 20:36:07Z gnn $
30 */
31
32#ifndef _SFXGE_RX_H
33#define _SFXGE_RX_H
34
35#define SFXGE_MAGIC_RESERVED 0x8000
36
37#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6

--- 116 unchanged lines hidden (view full) ---

154#define SFXGE_RX_BATCH 128
155
156struct sfxge_rxq {
157 struct sfxge_softc *sc __aligned(CACHE_LINE_SIZE);
158 unsigned int index;
159 efsys_mem_t mem;
160 unsigned int buf_base_id;
161 enum sfxge_rxq_state init_state;
30 */
31
32#ifndef _SFXGE_RX_H
33#define _SFXGE_RX_H
34
35#define SFXGE_MAGIC_RESERVED 0x8000
36
37#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6

--- 116 unchanged lines hidden (view full) ---

154#define SFXGE_RX_BATCH 128
155
156struct sfxge_rxq {
157 struct sfxge_softc *sc __aligned(CACHE_LINE_SIZE);
158 unsigned int index;
159 efsys_mem_t mem;
160 unsigned int buf_base_id;
161 enum sfxge_rxq_state init_state;
162 unsigned int entries;
163 unsigned int ptr_mask;
162
163 struct sfxge_rx_sw_desc *queue __aligned(CACHE_LINE_SIZE);
164 unsigned int added;
165 unsigned int pending;
166 unsigned int completed;
167 unsigned int loopback;
168 struct sfxge_lro_state lro;
164
165 struct sfxge_rx_sw_desc *queue __aligned(CACHE_LINE_SIZE);
166 unsigned int added;
167 unsigned int pending;
168 unsigned int completed;
169 unsigned int loopback;
170 struct sfxge_lro_state lro;
171 unsigned int refill_threshold;
169 struct callout refill_callout;
170 unsigned int refill_delay;
171
172 efx_rxq_t *common __aligned(CACHE_LINE_SIZE);
173 volatile enum sfxge_flush_state flush_state;
174};
175
176/*

--- 13 unchanged lines hidden ---
172 struct callout refill_callout;
173 unsigned int refill_delay;
174
175 efx_rxq_t *common __aligned(CACHE_LINE_SIZE);
176 volatile enum sfxge_flush_state flush_state;
177};
178
179/*

--- 13 unchanged lines hidden ---