diff options
author | 2016-11-10 12:15:30 +0000 | |
---|---|---|
committer | 2016-11-10 12:15:30 +0000 | |
commit | 009e4b91afb122fb160a726ae711521ef7b4ca7c (patch) | |
tree | ea1f9c0af07022da93fd5d4cd974e9ee65d900a6 | |
parent | Match Apple NVMe controller by product ID, yes apple is different. (diff) | |
download | wireguard-openbsd-009e4b91afb122fb160a726ae711521ef7b4ca7c.tar.xz wireguard-openbsd-009e4b91afb122fb160a726ae711521ef7b4ca7c.zip |
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 |