diff options
author | 2007-04-25 12:50:29 +0000 | |
---|---|---|
committer | 2007-04-25 12:50:29 +0000 | |
commit | 3cee831d4d9370a612596a91100ec42ce13ae7c6 (patch) | |
tree | 11904a7a0328dcf0741494b450b57f202a45e6d5 | |
parent | Use 'ifconfig' and not 'ifconfig -a' as the -a is now the default. (diff) | |
download | wireguard-openbsd-3cee831d4d9370a612596a91100ec42ce13ae7c6.tar.xz wireguard-openbsd-3cee831d4d9370a612596a91100ec42ce13ae7c6.zip |
when populating the rxf fifo, actually sync the rxf fifo at the start and
end of it, not txf.
still doesnt fix my bug
-rw-r--r-- | sys/dev/pci/if_tht.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index 6774597a701..3d74322d6c5 100644 --- a/sys/dev/pci/if_tht.c +++ b/sys/dev/pci/if_tht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tht.c,v 1.74 2007/04/25 11:01:09 dlg Exp $ */ +/* $OpenBSD: if_tht.c,v 1.75 2007/04/25 12:50:29 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1166,7 +1166,7 @@ tht_rxf_fill(struct tht_softc *sc, int wait) if (tht_fifo_writable(sc, &sc->sc_rxf) <= THT_FIFO_DESC_LEN) return; - tht_fifo_pre(sc, &sc->sc_txf); + tht_fifo_pre(sc, &sc->sc_rxf); for (;;) { if ((pkt = tht_pkt_get(&sc->sc_rx_list)) == NULL) @@ -1210,7 +1210,7 @@ free_m: put_pkt: tht_pkt_put(&sc->sc_rx_list, pkt); done: - tht_fifo_post(sc, &sc->sc_txf); + tht_fifo_post(sc, &sc->sc_rxf); } void |