vtnet_softc
static int vtnet_alloc_virtqueues(struct vtnet_softc *);
static int vtnet_bind_intrs(struct vtnet_softc *);
static void vtnet_get_hwaddr(struct vtnet_softc *);
static void vtnet_set_hwaddr(struct vtnet_softc *);
static int vtnet_is_link_up(struct vtnet_softc *);
static void vtnet_update_link_status(struct vtnet_softc *);
static int vtnet_setup_interface(struct vtnet_softc *);
static int vtnet_change_mtu(struct vtnet_softc *, int);
vtnet_change_mtu(struct vtnet_softc *sc, int new_mtu)
static int vtnet_init_rx_vq(struct vtnet_softc *);
static void vtnet_free_rx_mbufs(struct vtnet_softc *);
static void vtnet_free_tx_mbufs(struct vtnet_softc *);
static void vtnet_free_ctrl_vq(struct vtnet_softc *);
vtnet_init_rx_vq(struct vtnet_softc *sc)
static struct mbuf * vtnet_alloc_rxbuf(struct vtnet_softc *, int,
vtnet_free_rx_mbufs(struct vtnet_softc *sc)
static int vtnet_replace_rxbuf(struct vtnet_softc *,
vtnet_free_tx_mbufs(struct vtnet_softc *sc)
static int vtnet_newbuf(struct vtnet_softc *);
static void vtnet_discard_merged_rxbuf(struct vtnet_softc *, int);
vtnet_free_ctrl_vq(struct vtnet_softc *sc)
static void vtnet_discard_rxbuf(struct vtnet_softc *, struct mbuf *);
vtnet_alloc_rxbuf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp)
static int vtnet_enqueue_rxbuf(struct vtnet_softc *, struct mbuf *);
static int vtnet_rx_csum(struct vtnet_softc *, struct mbuf *,
static int vtnet_rxeof_merged(struct vtnet_softc *, struct mbuf *, int);
vtnet_replace_rxbuf(struct vtnet_softc *sc, struct mbuf *m0, int len0)
static int vtnet_rxeof(struct vtnet_softc *, int, int *);
static void vtnet_enqueue_txhdr(struct vtnet_softc *,
static void vtnet_txeof(struct vtnet_softc *);
static struct mbuf * vtnet_tx_offload(struct vtnet_softc *, struct mbuf *,
vtnet_newbuf(struct vtnet_softc *sc)
static int vtnet_enqueue_txbuf(struct vtnet_softc *, struct mbuf **,
vtnet_discard_merged_rxbuf(struct vtnet_softc *sc, int nbufs)
static int vtnet_encap(struct vtnet_softc *, struct mbuf **);
vtnet_discard_rxbuf(struct vtnet_softc *sc, struct mbuf *m)
vtnet_enqueue_rxbuf(struct vtnet_softc *sc, struct mbuf *m)
struct vtnet_softc *sc = ifp->if_softc;
static void vtnet_stop(struct vtnet_softc *);
struct vtnet_softc *sc = ifp->if_softc;
static int vtnet_virtio_reinit(struct vtnet_softc *);
struct vtnet_softc *sc = ifp->if_softc;
struct vtnet_softc *sc = ifp->if_softc;
static void vtnet_exec_ctrl_cmd(struct vtnet_softc *, void *,
static int vtnet_ctrl_mac_cmd(struct vtnet_softc *, uint8_t *);
static int vtnet_ctrl_rx_cmd(struct vtnet_softc *, int, int);
static int vtnet_set_promisc(struct vtnet_softc *, int);
static int vtnet_set_allmulti(struct vtnet_softc *, int);
static void vtnet_rx_filter(struct vtnet_softc *sc);
static void vtnet_rx_filter_mac(struct vtnet_softc *);
vtnet_rx_csum(struct vtnet_softc *sc, struct mbuf *m,
static int vtnet_exec_vlan_filter(struct vtnet_softc *, int, uint16_t);
static void vtnet_rx_filter_vlan(struct vtnet_softc *);
static void vtnet_update_vlan_filter(struct vtnet_softc *, int, uint16_t);
vtnet_rxeof_merged(struct vtnet_softc *sc, struct mbuf *m_head, int nbufs)
vtnet_rxeof(struct vtnet_softc *sc, int count, int *rx_npktsp)
static void vtnet_add_statistics(struct vtnet_softc *);
static int vtnet_enable_rx_intr(struct vtnet_softc *);
static int vtnet_enable_tx_intr(struct vtnet_softc *);
static void vtnet_disable_rx_intr(struct vtnet_softc *);
static void vtnet_disable_tx_intr(struct vtnet_softc *);
struct vtnet_softc *sc;
struct vtnet_softc *sc = xsc;
vtnet_enqueue_txhdr(struct vtnet_softc *sc, struct vtnet_tx_header *txhdr)
vtnet_txeof(struct vtnet_softc *sc)
vtnet_tx_offload(struct vtnet_softc *sc, struct mbuf *m,
vtnet_enqueue_txbuf(struct vtnet_softc *sc, struct mbuf **m_head,
vtnet_encap(struct vtnet_softc *sc, struct mbuf **m_head)
struct vtnet_softc *sc;
struct vtnet_softc *sc;
struct vtnet_softc *sc = xsc;
struct vtnet_softc *sc;
vtnet_stop(struct vtnet_softc *sc)
vtnet_virtio_reinit(struct vtnet_softc *sc)
struct vtnet_softc *sc;
sizeof(struct vtnet_softc)
vtnet_exec_ctrl_cmd(struct vtnet_softc *sc, void *cookie,
vtnet_ctrl_mac_cmd(struct vtnet_softc *sc, uint8_t *hwaddr)
vtnet_rx_filter(struct vtnet_softc *sc)
vtnet_ctrl_rx_cmd(struct vtnet_softc *sc, int cmd, int on)
vtnet_set_promisc(struct vtnet_softc *sc, int on)
vtnet_set_allmulti(struct vtnet_softc *sc, int on)
vtnet_rx_filter_mac(struct vtnet_softc *sc)
struct vtnet_softc *sc;
vtnet_exec_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag)
vtnet_rx_filter_vlan(struct vtnet_softc *sc)
vtnet_update_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag)
struct vtnet_softc *sc;
struct vtnet_softc *sc;
vtnet_add_statistics(struct vtnet_softc *sc)
vtnet_enable_rx_intr(struct vtnet_softc *sc)
vtnet_disable_rx_intr(struct vtnet_softc *sc)
vtnet_enable_tx_intr(struct vtnet_softc *sc)
vtnet_disable_tx_intr(struct vtnet_softc *sc)
struct vtnet_softc *sc;
struct vtnet_softc *sc;
struct vtnet_softc *sc;
vtnet_negotiate_features(struct vtnet_softc *sc)
struct vtnet_softc *sc = ifp->if_softc;
struct vtnet_softc *sc = ifp->if_softc;
struct vtnet_softc *sc = ifp->if_softc;
struct vtnet_softc *sc = ifp->if_softc;
vtnet_alloc_intrs(struct vtnet_softc *sc)
vtnet_alloc_virtqueues(struct vtnet_softc *sc)
vtnet_bind_intrs(struct vtnet_softc *sc)
vtnet_setup_interface(struct vtnet_softc *sc)
static void vtnet_negotiate_features(struct vtnet_softc *);
vtnet_set_hwaddr(struct vtnet_softc *sc)
vtnet_get_hwaddr(struct vtnet_softc *sc)
vtnet_is_link_up(struct vtnet_softc *sc)
vtnet_update_link_status(struct vtnet_softc *sc)
struct vtnet_softc *sc;
static int vtnet_alloc_intrs(struct vtnet_softc *);
struct vtnet_softc *sc;