Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic After handling an interrupt, try to handle more p...
details: https://anonhg.NetBSD.org/src/rev/f9b20212e0fd
branches: trunk
changeset: 334045:f9b20212e0fd
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 28 09:22:02 2014 +0000
description:
After handling an interrupt, try to handle more packets as we may have
space in the descriptor ring now.
Pointed out by Jared.
diffstat:
sys/dev/ic/dwc_gmac.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 010a9b7ca3a7 -r f9b20212e0fd sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c Fri Nov 28 09:01:05 2014 +0000
+++ b/sys/dev/ic/dwc_gmac.c Fri Nov 28 09:22:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.27 2014/11/23 22:42:14 matt Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.28 2014/11/28 09:22:02 martin Exp $ */
/*-
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.27 2014/11/23 22:42:14 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.28 2014/11/28 09:22:02 martin Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@@ -1266,6 +1266,12 @@
bus_space_write_4(sc->sc_bst, sc->sc_bsh,
AWIN_GMAC_DMA_STATUS, dma_status & GMAC_DMA_INT_MASK);
+ /*
+ * Get more packets
+ */
+ if (rv)
+ sc->sc_ec.ec_if.if_start(&sc->sc_ec.ec_if);
+
return rv;
}
Home |
Main Index |
Thread Index |
Old Index