Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/axgbe/xgbe.h
Show First 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | struct xgbe_ring_data { | ||||
*/ | */ | ||||
unsigned int state_saved; | unsigned int state_saved; | ||||
struct { | struct { | ||||
struct mbuf *m; | struct mbuf *m; | ||||
unsigned int len; | unsigned int len; | ||||
unsigned int error; | unsigned int error; | ||||
} state; | } state; | ||||
/* Free list index associated with this descriptor */ | |||||
int fl_hdr_idx; | |||||
int fl_data_idx; | |||||
}; | }; | ||||
struct xgbe_ring { | struct xgbe_ring { | ||||
/* Ring lock - used just for TX rings at the moment */ | /* Ring lock - used just for TX rings at the moment */ | ||||
spinlock_t lock; | spinlock_t lock; | ||||
/* Per packet related information */ | /* Per packet related information */ | ||||
struct xgbe_packet_data packet_data; | struct xgbe_packet_data packet_data; | ||||
▲ Show 20 Lines • Show All 809 Lines • ▼ Show 20 Lines | struct xgbe_prv_data { | ||||
int pcie_func; /* PCIe function number */ | int pcie_func; /* PCIe function number */ | ||||
void *sys_op; | void *sys_op; | ||||
uint64_t use_adaptive_rx_coalesce; | uint64_t use_adaptive_rx_coalesce; | ||||
uint64_t use_adaptive_tx_coalesce; | uint64_t use_adaptive_tx_coalesce; | ||||
uint64_t rx_coalesce_usecs; | uint64_t rx_coalesce_usecs; | ||||
unsigned int debug_level; | unsigned int debug_level; | ||||
unsigned int sph_enabled; /* toggles the split header feature, requires complete restart */ | |||||
unsigned int single_fl; /* rxq uses 1 freelist(default 2), requires complete restart */ | |||||
}; | }; | ||||
struct axgbe_if_softc { | struct axgbe_if_softc { | ||||
struct xgbe_prv_data pdata; | struct xgbe_prv_data pdata; | ||||
if_softc_ctx_t scctx; | if_softc_ctx_t scctx; | ||||
if_shared_ctx_t sctx; | if_shared_ctx_t sctx; | ||||
if_ctx_t ctx; | if_ctx_t ctx; | ||||
struct ifnet *ifp; | struct ifnet *ifp; | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |