sfxge.h (342403) | sfxge.h (342452) |
---|---|
1/*- 2 * Copyright (c) 2010-2016 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 --- 16 unchanged lines hidden (view full) --- 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 * | 1/*- 2 * Copyright (c) 2010-2016 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 --- 16 unchanged lines hidden (view full) --- 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 * |
33 * $FreeBSD: stable/11/sys/dev/sfxge/sfxge.h 342403 2018-12-25 06:35:40Z arybchik $ | 33 * $FreeBSD: stable/11/sys/dev/sfxge/sfxge.h 342452 2018-12-25 07:34:44Z arybchik $ |
34 */ 35 36#ifndef _SFXGE_H 37#define _SFXGE_H 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/socket.h> --- 135 unchanged lines hidden (view full) --- 177 /* Linked list of TX queues with completions to process */ 178 struct sfxge_txq *txq; 179 struct sfxge_txq **txqs; 180 181 /* Structure members not used on event processing path */ 182 unsigned int buf_base_id; 183 unsigned int entries; 184 char lock_name[SFXGE_LOCK_NAME_MAX]; | 34 */ 35 36#ifndef _SFXGE_H 37#define _SFXGE_H 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/socket.h> --- 135 unchanged lines hidden (view full) --- 177 /* Linked list of TX queues with completions to process */ 178 struct sfxge_txq *txq; 179 struct sfxge_txq **txqs; 180 181 /* Structure members not used on event processing path */ 182 unsigned int buf_base_id; 183 unsigned int entries; 184 char lock_name[SFXGE_LOCK_NAME_MAX]; |
185#if EFSYS_OPT_QSTATS 186 clock_t stats_update_time; 187 uint64_t stats[EV_NQSTATS]; 188#endif |
|
185} __aligned(CACHE_LINE_SIZE); 186 187#define SFXGE_NDESCS 1024 188#define SFXGE_MODERATION 30 189 190enum sfxge_intr_state { 191 SFXGE_INTR_UNINITIALIZED = 0, 192 SFXGE_INTR_INITIALIZED, --- 75 unchanged lines hidden (view full) --- 268struct sfxge_softc { 269 device_t dev; 270 struct sx softc_lock; 271 char softc_lock_name[SFXGE_LOCK_NAME_MAX]; 272 enum sfxge_softc_state init_state; 273 struct ifnet *ifnet; 274 unsigned int if_flags; 275 struct sysctl_oid *stats_node; | 189} __aligned(CACHE_LINE_SIZE); 190 191#define SFXGE_NDESCS 1024 192#define SFXGE_MODERATION 30 193 194enum sfxge_intr_state { 195 SFXGE_INTR_UNINITIALIZED = 0, 196 SFXGE_INTR_INITIALIZED, --- 75 unchanged lines hidden (view full) --- 272struct sfxge_softc { 273 device_t dev; 274 struct sx softc_lock; 275 char softc_lock_name[SFXGE_LOCK_NAME_MAX]; 276 enum sfxge_softc_state init_state; 277 struct ifnet *ifnet; 278 unsigned int if_flags; 279 struct sysctl_oid *stats_node; |
280#if EFSYS_OPT_QSTATS 281 struct sysctl_oid *evqs_stats_node; 282#endif |
|
276 struct sysctl_oid *txqs_node; 277 278 struct task task_reset; 279 280 efx_family_t family; 281 caddr_t vpd_data; 282 size_t vpd_size; 283 efx_nic_t *enp; --- 196 unchanged lines hidden --- | 283 struct sysctl_oid *txqs_node; 284 285 struct task task_reset; 286 287 efx_family_t family; 288 caddr_t vpd_data; 289 size_t vpd_size; 290 efx_nic_t *enp; --- 196 unchanged lines hidden --- |