diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-11-10 12:15:31 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-11-10 12:15:31 +0000 |
commit | 1e57026764df0231083bc962f244abdc8983c104 (patch) | |
tree | 4ee4f9ef9d7b7fc50470b0b1b4c968e1fbdf7ae9 | |
parent | f72f671ceab1b30fd6a945fab22b49521e1d6c32 (diff) |
Don't forget to set the descriptor ready flag after decapsulation
-rw-r--r-- | sys/dev/pv/if_hvn.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |