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/69d607aa1328
branches:  trunk
changeset: 804187:69d607aa1328
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 3b7b533ba5f0 -r 69d607aa1328 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