Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_virtio_net.c
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | static struct virtio_consts vtnet_vi_consts = { | ||||
VTNET_S_HOSTCAPS, /* our capabilities */ | VTNET_S_HOSTCAPS, /* our capabilities */ | ||||
}; | }; | ||||
static void | static void | ||||
pci_vtnet_reset(void *vsc) | pci_vtnet_reset(void *vsc) | ||||
{ | { | ||||
struct pci_vtnet_softc *sc = vsc; | struct pci_vtnet_softc *sc = vsc; | ||||
DPRINTF(("vtnet: device reset requested !\n")); | DPRINTF(("vtnet: device reset requested !\n\r")); | ||||
/* Acquire the RX lock to block RX processing. */ | /* Acquire the RX lock to block RX processing. */ | ||||
pthread_mutex_lock(&sc->rx_mtx); | pthread_mutex_lock(&sc->rx_mtx); | ||||
/* | /* | ||||
* Make sure receive operation is disabled at least until we | * Make sure receive operation is disabled at least until we | ||||
* re-negotiate the features, since receive operation depends | * re-negotiate the features, since receive operation depends | ||||
* on the value of sc->rx_merge and the header length, which | * on the value of sc->rx_merge and the header length, which | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |