Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/network/if_vtnetvar.h
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | |||||
#define VTNET_FLAG_LRO_NOMRG 0x0100 | #define VTNET_FLAG_LRO_NOMRG 0x0100 | ||||
#define VTNET_FLAG_MQ 0x0200 | #define VTNET_FLAG_MQ 0x0200 | ||||
#define VTNET_FLAG_INDIRECT 0x0400 | #define VTNET_FLAG_INDIRECT 0x0400 | ||||
#define VTNET_FLAG_EVENT_IDX 0x0800 | #define VTNET_FLAG_EVENT_IDX 0x0800 | ||||
#define VTNET_FLAG_SUSPENDED 0x1000 | #define VTNET_FLAG_SUSPENDED 0x1000 | ||||
#define VTNET_FLAG_FIXUP_NEEDS_CSUM 0x2000 | #define VTNET_FLAG_FIXUP_NEEDS_CSUM 0x2000 | ||||
#define VTNET_FLAG_SW_LRO 0x4000 | #define VTNET_FLAG_SW_LRO 0x4000 | ||||
int vtnet_hdr_size; | u_int vtnet_hdr_size; | ||||
int vtnet_rx_nmbufs; | int vtnet_rx_nmbufs; | ||||
int vtnet_rx_clustersz; | int vtnet_rx_clustersz; | ||||
int vtnet_rx_nsegs; | int vtnet_rx_nsegs; | ||||
int vtnet_rx_process_limit; | int vtnet_rx_process_limit; | ||||
int vtnet_link_active; | int vtnet_link_active; | ||||
int vtnet_act_vq_pairs; | int vtnet_act_vq_pairs; | ||||
int vtnet_req_vq_pairs; | int vtnet_req_vq_pairs; | ||||
int vtnet_max_vq_pairs; | int vtnet_max_vq_pairs; | ||||
int vtnet_tx_nsegs; | int vtnet_tx_nsegs; | ||||
int vtnet_if_flags; | int vtnet_if_flags; | ||||
int vtnet_max_mtu; | u_int vtnet_max_mtu; | ||||
int vtnet_lro_entry_count; | int vtnet_lro_entry_count; | ||||
int vtnet_lro_mbufq_depth; | int vtnet_lro_mbufq_depth; | ||||
struct virtqueue *vtnet_ctrl_vq; | struct virtqueue *vtnet_ctrl_vq; | ||||
struct vtnet_mac_filter *vtnet_mac_filter; | struct vtnet_mac_filter *vtnet_mac_filter; | ||||
uint32_t *vtnet_vlan_filter; | uint32_t *vtnet_vlan_filter; | ||||
uint64_t vtnet_negotiated_features; | uint64_t vtnet_negotiated_features; | ||||
struct vtnet_statistics vtnet_stats; | struct vtnet_statistics vtnet_stats; | ||||
struct callout vtnet_tick_ch; | struct callout vtnet_tick_ch; | ||||
struct ifmedia vtnet_media; | struct ifmedia vtnet_media; | ||||
eventhandler_tag vtnet_vlan_attach; | eventhandler_tag vtnet_vlan_attach; | ||||
eventhandler_tag vtnet_vlan_detach; | eventhandler_tag vtnet_vlan_detach; | ||||
struct mtx vtnet_mtx; | struct mtx vtnet_mtx; | ||||
char vtnet_mtx_name[16]; | char vtnet_mtx_name[16]; | ||||
char vtnet_hwaddr[ETHER_ADDR_LEN]; | uint8_t vtnet_hwaddr[ETHER_ADDR_LEN]; | ||||
}; | }; | ||||
static bool | static bool | ||||
vtnet_modern(struct vtnet_softc *sc) | vtnet_modern(struct vtnet_softc *sc) | ||||
{ | { | ||||
return ((sc->vtnet_flags & VTNET_FLAG_MODERN) != 0); | return ((sc->vtnet_flags & VTNET_FLAG_MODERN) != 0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |