Changeset View
Changeset View
Standalone View
Standalone View
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 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; | ||||
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 98 Lines • ▼ Show 20 Lines | |||||
#define HN_TX_FLAG_ATTACHED 0x0001 | #define HN_TX_FLAG_ATTACHED 0x0001 | ||||
#define HN_TX_FLAG_HASHVAL 0x0002 /* support HASHVAL pktinfo */ | #define HN_TX_FLAG_HASHVAL 0x0002 /* support HASHVAL pktinfo */ | ||||
/* | /* | ||||
* Device-specific softc structure | * Device-specific softc structure | ||||
*/ | */ | ||||
struct hn_softc { | struct hn_softc { | ||||
struct ifnet *hn_ifp; | struct ifnet *hn_ifp; | ||||
struct ifnet *hn_vf_ifp; /* SR-IOV VF */ | |||||
struct ifmedia hn_media; | struct ifmedia hn_media; | ||||
device_t hn_dev; | device_t hn_dev; | ||||
int hn_if_flags; | int hn_if_flags; | ||||
struct sx hn_lock; | struct sx hn_lock; | ||||
struct vmbus_channel *hn_prichan; | struct vmbus_channel *hn_prichan; | ||||
int hn_rx_ring_cnt; | int hn_rx_ring_cnt; | ||||
int hn_rx_ring_inuse; | int hn_rx_ring_inuse; | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | struct hn_softc { | ||||
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_ifaddr_evthand; | ||||
eventhandler_tag hn_ifnet_evthand; | eventhandler_tag hn_ifnet_evthand; | ||||
eventhandler_tag hn_ifnet_atthand; | |||||
eventhandler_tag hn_ifnet_dethand; | |||||
}; | }; | ||||
#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 | ||||
Show All 39 Lines |