Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/if_hnvar.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
SLIST_HEAD(hn_txdesc_list, hn_txdesc); | SLIST_HEAD(hn_txdesc_list, hn_txdesc); | ||||
#else | #else | ||||
struct buf_ring; | struct buf_ring; | ||||
#endif | #endif | ||||
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_vf; /* SR-IOV VF */ | |||||
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; | ||||
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_ */ | ||||
▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | struct hn_softc { | ||||
int hn_ndis_tso_sgmin; | int hn_ndis_tso_sgmin; | ||||
uint32_t hn_rndis_agg_size; | uint32_t hn_rndis_agg_size; | ||||
uint32_t hn_rndis_agg_pkts; | uint32_t hn_rndis_agg_pkts; | ||||
uint32_t hn_rndis_agg_align; | uint32_t hn_rndis_agg_align; | ||||
int hn_rss_ind_size; | int hn_rss_ind_size; | ||||
uint32_t hn_rss_hash; /* NDIS_HASH_ */ | uint32_t hn_rss_hash; /* NDIS_HASH_ */ | ||||
struct ndis_rssprm_toeplitz hn_rss; | struct ndis_rssprm_toeplitz hn_rss; | ||||
eventhandler_tag hn_ifaddr_evthand; | |||||
eventhandler_tag hn_ifnet_evthand; | |||||
}; | }; | ||||
#define HN_FLAG_RXBUF_CONNECTED 0x0001 | #define HN_FLAG_RXBUF_CONNECTED 0x0001 | ||||
#define HN_FLAG_CHIM_CONNECTED 0x0002 | #define HN_FLAG_CHIM_CONNECTED 0x0002 | ||||
#define HN_FLAG_HAS_RSSKEY 0x0004 | #define HN_FLAG_HAS_RSSKEY 0x0004 | ||||
#define HN_FLAG_HAS_RSSIND 0x0008 | #define HN_FLAG_HAS_RSSIND 0x0008 | ||||
#define HN_FLAG_SYNTH_ATTACHED 0x0010 | #define HN_FLAG_SYNTH_ATTACHED 0x0010 | ||||
#define HN_FLAG_NO_SLEEPING 0x0020 | #define HN_FLAG_NO_SLEEPING 0x0020 | ||||
#define HN_FLAG_RXBUF_REF 0x0040 | #define HN_FLAG_RXBUF_REF 0x0040 | ||||
#define HN_FLAG_CHIM_REF 0x0080 | #define HN_FLAG_CHIM_REF 0x0080 | ||||
#define HN_FLAG_VF 0x0100 | |||||
#define HN_FLAG_ERRORS (HN_FLAG_RXBUF_REF | HN_FLAG_CHIM_REF) | #define HN_FLAG_ERRORS (HN_FLAG_RXBUF_REF | HN_FLAG_CHIM_REF) | ||||
#define HN_NO_SLEEPING(sc) \ | #define HN_NO_SLEEPING(sc) \ | ||||
do { \ | do { \ | ||||
(sc)->hn_flags |= HN_FLAG_NO_SLEEPING; \ | (sc)->hn_flags |= HN_FLAG_NO_SLEEPING; \ | ||||
} while (0) | } while (0) | ||||
Show All 28 Lines |