diff options
| author | martin <martin@NetBSD.org> | 2014-11-28 09:22:02 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2014-11-28 09:22:02 +0000 |
| commit | 56e1623cb84a46e8ca459a9ec43ef06fce034e0e (patch) | |
| tree | 4b08fd8b91fb38c855d05ab3b94ee236a30bbd9e /sys/dev | |
| parent | 5dff3dd798c9529a4a58f6abdc34005fb7cf5e45 (diff) | |
After handling an interrupt, try to handle more packets as we may have
space in the descriptor ring now.
Pointed out by Jared.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/dwc_gmac.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/ic/dwc_gmac.c b/sys/dev/ic/dwc_gmac.c index e2d0289de50..d21470bae0a 100644 --- a/sys/dev/ic/dwc_gmac.c +++ b/sys/dev/ic/dwc_gmac.c @@ -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 @@ dwc_gmac_intr(struct dwc_gmac_softc *sc) 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; } |
