Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/if_hnvar.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
struct hn_tx_ring; | struct hn_tx_ring; | ||||
struct hn_rx_ring { | struct hn_rx_ring { | ||||
struct ifnet *hn_ifp; | struct ifnet *hn_ifp; | ||||
struct ifnet *hn_rxvf_ifp; /* SR-IOV VF for RX */ | struct ifnet *hn_rxvf_ifp; /* SR-IOV VF for RX */ | ||||
struct hn_tx_ring *hn_txr; | struct hn_tx_ring *hn_txr; | ||||
void *hn_pktbuf; | void *hn_pktbuf; | ||||
int hn_pktbuf_len; | int hn_pktbuf_len; | ||||
int hn_rx_flags; /* HN_RX_FLAG_ */ | |||||
uint8_t *hn_rxbuf; /* shadow sc->hn_rxbuf */ | uint8_t *hn_rxbuf; /* shadow sc->hn_rxbuf */ | ||||
int hn_rx_idx; | int hn_rx_idx; | ||||
/* Trust csum verification on host side */ | /* Trust csum verification on host side */ | ||||
int hn_trust_hcsum; /* HN_TRUST_HCSUM_ */ | int hn_trust_hcsum; /* HN_TRUST_HCSUM_ */ | ||||
struct lro_ctrl hn_lro; | struct lro_ctrl hn_lro; | ||||
u_long hn_csum_ip; | u_long hn_csum_ip; | ||||
u_long hn_csum_tcp; | u_long hn_csum_tcp; | ||||
u_long hn_csum_udp; | u_long hn_csum_udp; | ||||
u_long hn_csum_trusted; | u_long hn_csum_trusted; | ||||
u_long hn_lro_tried; | u_long hn_lro_tried; | ||||
u_long hn_small_pkts; | u_long hn_small_pkts; | ||||
u_long hn_pkts; | u_long hn_pkts; | ||||
u_long hn_rss_pkts; | u_long hn_rss_pkts; | ||||
u_long hn_ack_failed; | u_long hn_ack_failed; | ||||
/* Rarely used stuffs */ | /* Rarely used stuffs */ | ||||
struct sysctl_oid *hn_rx_sysctl_tree; | struct sysctl_oid *hn_rx_sysctl_tree; | ||||
int hn_rx_flags; | |||||
void *hn_br; /* TX/RX bufring */ | void *hn_br; /* TX/RX bufring */ | ||||
struct hyperv_dma hn_br_dma; | struct hyperv_dma hn_br_dma; | ||||
struct vmbus_channel *hn_chan; | struct vmbus_channel *hn_chan; | ||||
} __aligned(CACHE_LINE_SIZE); | } __aligned(CACHE_LINE_SIZE); | ||||
#define HN_TRUST_HCSUM_IP 0x0001 | #define HN_TRUST_HCSUM_IP 0x0001 | ||||
#define HN_TRUST_HCSUM_TCP 0x0002 | #define HN_TRUST_HCSUM_TCP 0x0002 | ||||
#define HN_TRUST_HCSUM_UDP 0x0004 | #define HN_TRUST_HCSUM_UDP 0x0004 | ||||
#define HN_RX_FLAG_ATTACHED 0x0001 | #define HN_RX_FLAG_ATTACHED 0x0001 | ||||
#define HN_RX_FLAG_BR_REF 0x0002 | #define HN_RX_FLAG_BR_REF 0x0002 | ||||
#define HN_RX_FLAG_XPNT_VF 0x0004 | |||||
struct hn_tx_ring { | struct hn_tx_ring { | ||||
#ifndef HN_USE_TXDESC_BUFRING | #ifndef HN_USE_TXDESC_BUFRING | ||||
struct mtx hn_txlist_spin; | struct mtx hn_txlist_spin; | ||||
struct hn_txdesc_list hn_txlist; | struct hn_txdesc_list hn_txlist; | ||||
#else | #else | ||||
struct buf_ring *hn_txdesc_br; | struct buf_ring *hn_txdesc_br; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines |