svn commit: r193103 - head/sys/dev/bge

Attilio Rao attilio at FreeBSD.org
Sat May 30 17:56:20 UTC 2009


Author: attilio
Date: Sat May 30 17:56:19 2009
New Revision: 193103
URL: http://svn.freebsd.org/changeset/base/193103

Log:
  Fix return values appropriately.
  
  Tested by:	zec

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Sat May 30 17:39:50 2009	(r193102)
+++ head/sys/dev/bge/if_bge.c	Sat May 30 17:56:19 2009	(r193103)
@@ -3196,7 +3196,7 @@ bge_rxeof(struct bge_softc *sc)
 		rx_npkts++;
 
 		if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
-			return;
+			return (rx_npkts);
 	}
 
 	if (stdcnt > 0)
@@ -3309,7 +3309,7 @@ bge_poll(struct ifnet *ifp, enum poll_cm
 	rx_npkts = bge_rxeof(sc);
 	if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) {
 		BGE_UNLOCK(sc);
-		return;
+		return (rx_npkts);
 	}
 	bge_txeof(sc);
 	if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))


More information about the svn-src-head mailing list