Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/network/if_vtnetvar.h
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | #define VTNET_TXQ_LOCK_ASSERT_NOTOWNED(_txq) \ | ||||
mtx_assert(&(_txq)->vtntx_mtx, MA_NOTOWNED) | mtx_assert(&(_txq)->vtntx_mtx, MA_NOTOWNED) | ||||
struct vtnet_softc { | struct vtnet_softc { | ||||
device_t vtnet_dev; | device_t vtnet_dev; | ||||
struct ifnet *vtnet_ifp; | struct ifnet *vtnet_ifp; | ||||
struct vtnet_rxq *vtnet_rxqs; | struct vtnet_rxq *vtnet_rxqs; | ||||
struct vtnet_txq *vtnet_txqs; | struct vtnet_txq *vtnet_txqs; | ||||
pfil_head_t vtnet_pfil; | pfil_head_t vtnet_pfil; | ||||
uint64_t vtnet_features; | |||||
uint32_t vtnet_flags; | uint32_t vtnet_flags; | ||||
#define VTNET_FLAG_MODERN 0x0001 | #define VTNET_FLAG_MODERN 0x0001 | ||||
#define VTNET_FLAG_MAC 0x0002 | #define VTNET_FLAG_MAC 0x0002 | ||||
#define VTNET_FLAG_CTRL_VQ 0x0004 | #define VTNET_FLAG_CTRL_VQ 0x0004 | ||||
#define VTNET_FLAG_CTRL_RX 0x0008 | #define VTNET_FLAG_CTRL_RX 0x0008 | ||||
#define VTNET_FLAG_CTRL_MAC 0x0010 | #define VTNET_FLAG_CTRL_MAC 0x0010 | ||||
#define VTNET_FLAG_VLAN_FILTER 0x0020 | #define VTNET_FLAG_VLAN_FILTER 0x0020 | ||||
#define VTNET_FLAG_TSO_ECN 0x0040 | #define VTNET_FLAG_TSO_ECN 0x0040 | ||||
#define VTNET_FLAG_MRG_RXBUFS 0x0080 | #define VTNET_FLAG_MRG_RXBUFS 0x0080 | ||||
#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_link_active; | |||||
int vtnet_hdr_size; | int vtnet_hdr_size; | ||||
int vtnet_rx_process_limit; | |||||
int vtnet_rx_nsegs; | |||||
int vtnet_rx_nmbufs; | int vtnet_rx_nmbufs; | ||||
int vtnet_rx_clustersz; | int vtnet_rx_clustersz; | ||||
int vtnet_tx_nsegs; | int vtnet_rx_nsegs; | ||||
int vtnet_if_flags; | int vtnet_rx_process_limit; | ||||
int vtnet_max_mtu; | 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_if_flags; | |||||
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_features; | |||||
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; | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |