summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-10-16 20:37:25 +0000
committerbrad <brad@openbsd.org>2006-10-16 20:37:25 +0000
commitaae5e85bbd81738d3a83c555d36c43bb47aba29b (patch)
treebde0f4d1ecfbca646a7e4b5c9a83a4bbce128bc2 /sys/dev
parentvarious improvements; (diff)
downloadwireguard-openbsd-aae5e85bbd81738d3a83c555d36c43bb47aba29b.tar.xz
wireguard-openbsd-aae5e85bbd81738d3a83c555d36c43bb47aba29b.zip
Fix for watchdog timeouts experienced with some Realtek adapters.
From wpaul@FreeBSD ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index c6fd2a46b66..9d9415e917e 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.47 2006/09/29 17:35:45 brad Exp $ */
+/* $OpenBSD: re.c,v 1.48 2006/10/16 20:37:25 brad Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -1402,7 +1402,7 @@ re_txeof(struct rl_softc *sc)
/* No changes made to the TX ring, so no flush needed */
- if (idx != sc->rl_ldata.rl_txq_considx) {
+ if (sc->rl_ldata.rl_tx_free) {
sc->rl_ldata.rl_txq_considx = idx;
ifp->if_flags &= ~IFF_OACTIVE;
ifp->if_timer = 0;