summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-10-08 16:14:42 +0000
committermlaier <mlaier@FreeBSD.org>2004-10-08 16:14:42 +0000
commitb5e56e2ca94c36a11a6f85a78382b218156e054b (patch)
treeed4084a8a1bf712a55ee3fbbfd4c4abc2d589c0d /sys/dev/if_ndis
parent94efc7605774ab918c26765ad2ff86c64e37ecc7 (diff)
downloadFreeBSD-src-b5e56e2ca94c36a11a6f85a78382b218156e054b.zip
FreeBSD-src-b5e56e2ca94c36a11a6f85a78382b218156e054b.tar.gz
Fix sis, bfe and ndis in the same way dc was fixed:
Do not tell the hardware to send when there were no packets enqueued. Found and reviewed by: green MFC after: 1 days
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index 48da1f8..2412cf0 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -1291,6 +1291,9 @@ ndis_start(ifp)
break;
}
+ if (pcnt == 0)
+ return;
+
if (sc->ndis_txpending == 0)
ifp->if_flags |= IFF_OACTIVE;
OpenPOWER on IntegriCloud