Module Name:    src
Committed By:   martin
Date:           Fri Nov 28 09:22:02 UTC 2014

Modified Files:
        src/sys/dev/ic: dwc_gmac.c

Log Message:
After handling an interrupt, try to handle more packets as we may have
space in the descriptor ring now.
Pointed out by Jared.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/dwc_gmac.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/dwc_gmac.c
diff -u src/sys/dev/ic/dwc_gmac.c:1.27 src/sys/dev/ic/dwc_gmac.c:1.28
--- src/sys/dev/ic/dwc_gmac.c:1.27	Sun Nov 23 22:42:14 2014
+++ src/sys/dev/ic/dwc_gmac.c	Fri Nov 28 09:22:02 2014
@@ -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;
 }
 

Reply via email to