Reset some more softc state when the guest resets the virtio network device.
Obtained from: NetApp
This commit is contained in:
parent
2a80be7b2b
commit
3b207d1e34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250086
@ -259,6 +259,7 @@ pci_vtnet_rxwait(struct pci_vtnet_softc *sc)
|
||||
static void
|
||||
pci_vtnet_update_status(struct pci_vtnet_softc *sc, uint32_t value)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (value == 0) {
|
||||
DPRINTF(("vtnet: device reset requested !\n"));
|
||||
@ -276,6 +277,12 @@ pci_vtnet_update_status(struct pci_vtnet_softc *sc, uint32_t value)
|
||||
pci_vtnet_ring_reset(sc, VTNET_RXQ);
|
||||
pci_vtnet_ring_reset(sc, VTNET_TXQ);
|
||||
|
||||
for (i = 0; i < VTNET_MAXQ; i++)
|
||||
sc->vsc_msix_table_idx[i] = VIRTIO_MSI_NO_VECTOR;
|
||||
|
||||
sc->vsc_isr = 0;
|
||||
sc->vsc_features = 0;
|
||||
|
||||
sc->resetting = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user