Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.h
Show First 20 Lines • Show All 1,145 Lines • ▼ Show 20 Lines | |||||
#ifndef HN_USE_TXDESC_BUFRING | #ifndef HN_USE_TXDESC_BUFRING | ||||
struct hn_txdesc; | struct hn_txdesc; | ||||
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_rx_ring { | struct hn_rx_ring { | ||||
struct ifnet *hn_ifp; | struct ifnet *hn_ifp; | ||||
struct hn_tx_ring *hn_txr; | |||||
void *hn_rdbuf; | |||||
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; | ||||
▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Externs | * Externs | ||||
*/ | */ | ||||
extern int hv_promisc_mode; | extern int hv_promisc_mode; | ||||
void netvsc_linkstatus_callback(struct hn_softc *sc, uint32_t status); | void netvsc_linkstatus_callback(struct hn_softc *sc, uint32_t status); | ||||
netvsc_dev *hv_nv_on_device_add(struct hn_softc *sc, | netvsc_dev *hv_nv_on_device_add(struct hn_softc *sc, | ||||
void *additional_info); | void *additional_info, struct hn_rx_ring *rxr); | ||||
int hv_nv_on_device_remove(struct hn_softc *sc, | int hv_nv_on_device_remove(struct hn_softc *sc, | ||||
boolean_t destroy_channel); | boolean_t destroy_channel); | ||||
int hv_nv_on_send(struct hv_vmbus_channel *chan, netvsc_packet *pkt); | int hv_nv_on_send(struct hv_vmbus_channel *chan, netvsc_packet *pkt); | ||||
int hv_nv_get_next_send_section(netvsc_dev *net_dev); | int hv_nv_get_next_send_section(netvsc_dev *net_dev); | ||||
void hv_nv_subchan_attach(struct hv_vmbus_channel *chan); | void hv_nv_subchan_attach(struct hv_vmbus_channel *chan, | ||||
struct hn_rx_ring *rxr); | |||||
#endif /* __HV_NET_VSC_H__ */ | #endif /* __HV_NET_VSC_H__ */ | ||||