summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-05-13 15:36:22 +0000
committerart <art@openbsd.org>2002-05-13 15:36:22 +0000
commitee4bef98994fc6bb91f6b654f350a99913b883d0 (patch)
treee0c2de54a8388005e29041cea2bec35e5bce17cf
parentlt font update from Sarunas Grigaliunas <brudas@arena.ktu.lt> (diff)
downloadwireguard-openbsd-ee4bef98994fc6bb91f6b654f350a99913b883d0.tar.xz
wireguard-openbsd-ee4bef98994fc6bb91f6b654f350a99913b883d0.zip
When collecting the completed tx descriptors, dmasync all of them
before reading, not just the first one. jason@ ok.
-rw-r--r--sys/dev/ic/fxp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index 37acd74f752..9eff640e6a5 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.36 2002/05/13 14:19:53 art Exp $ */
+/* $OpenBSD: fxp.c,v 1.37 2002/05/13 15:36:22 art Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -779,6 +779,8 @@ fxp_intr(arg)
}
--txcnt;
txs = txs->tx_next;
+ FXP_TXCB_SYNC(sc, txs,
+ BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
}
sc->sc_cbt_cons = txs;
sc->sc_cbt_cnt = txcnt;