Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/adapter.h
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | struct sge_fl { | ||||
bus_dma_tag_t desc_tag; | bus_dma_tag_t desc_tag; | ||||
bus_dmamap_t desc_map; | bus_dmamap_t desc_map; | ||||
char lockname[16]; | char lockname[16]; | ||||
bus_addr_t ba; /* bus address of descriptor ring */ | bus_addr_t ba; /* bus address of descriptor ring */ | ||||
}; | }; | ||||
struct mp_ring; | struct mp_ring; | ||||
struct txpkts { | |||||
uint8_t wr_type; /* type 0 or type 1 */ | |||||
uint8_t npkt; /* # of packets in this work request */ | |||||
uint8_t len16; /* # of 16B pieces used by this work request */ | |||||
uint8_t score; /* 1-10. coalescing attempted if score > 3 */ | |||||
uint8_t max_npkt; /* maximum number of packets allowed */ | |||||
uint16_t plen; /* total payload (sum of all packets) */ | |||||
/* straight from fw_eth_tx_pkts_vm_wr. */ | |||||
__u8 ethmacdst[6]; | |||||
__u8 ethmacsrc[6]; | |||||
__be16 ethtype; | |||||
__be16 vlantci; | |||||
struct mbuf *mb[15]; | |||||
}; | |||||
/* txq: SGE egress queue + what's needed for Ethernet NIC */ | /* txq: SGE egress queue + what's needed for Ethernet NIC */ | ||||
struct sge_txq { | struct sge_txq { | ||||
struct sge_eq eq; /* MUST be first */ | struct sge_eq eq; /* MUST be first */ | ||||
struct ifnet *ifp; /* the interface this txq belongs to */ | struct ifnet *ifp; /* the interface this txq belongs to */ | ||||
struct mp_ring *r; /* tx software ring */ | struct mp_ring *r; /* tx software ring */ | ||||
struct tx_sdesc *sdesc; /* KVA of software descriptor ring */ | struct tx_sdesc *sdesc; /* KVA of software descriptor ring */ | ||||
struct sglist *gl; | struct sglist *gl; | ||||
__be32 cpl_ctrl0; /* for convenience */ | __be32 cpl_ctrl0; /* for convenience */ | ||||
int tc_idx; /* traffic class */ | int tc_idx; /* traffic class */ | ||||
struct txpkts txp; | |||||
struct task tx_reclaim_task; | struct task tx_reclaim_task; | ||||
/* stats for common events first */ | /* stats for common events first */ | ||||
uint64_t txcsum; /* # of times hardware assisted with checksum */ | uint64_t txcsum; /* # of times hardware assisted with checksum */ | ||||
uint64_t tso_wrs; /* # of TSO work requests */ | uint64_t tso_wrs; /* # of TSO work requests */ | ||||
uint64_t vlan_insertion;/* # of times VLAN tag was inserted */ | uint64_t vlan_insertion;/* # of times VLAN tag was inserted */ | ||||
uint64_t imm_wrs; /* # of work requests with immediate data */ | uint64_t imm_wrs; /* # of work requests with immediate data */ | ||||
▲ Show 20 Lines • Show All 789 Lines • Show Last 20 Lines |