From 1e57026764df0231083bc962f244abdc8983c104 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Thu, 10 Nov 2016 12:15:31 +0000 Subject: Don't forget to set the descriptor ready flag after decapsulation --- sys/dev/pv/if_hvn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c index cc5228825c1..d8cf21a6bfd 100644 --- a/sys/dev/pv/if_hvn.c +++ b/sys/dev/pv/if_hvn.c @@ -524,7 +524,6 @@ hvn_encap(struct hvn_softc *sc, struct mbuf *m, struct hvn_tx_desc **txd0) size_t pktlen; int i, rv; - /* XXX use queues? */ txd = &sc->sc_tx_desc[sc->sc_tx_next]; while (!txd->txd_ready) { sc->sc_tx_next++; @@ -614,6 +613,7 @@ hvn_decap(struct hvn_softc *sc, struct hvn_tx_desc *txd) bus_dmamap_unload(sc->sc_dmat, txd->txd_dmap); txd->txd_buf = NULL; txd->txd_nsge = 0; + txd->txd_ready = 1; } void -- cgit v1.2.3