Module Name:    src
Committed By:   christos
Date:           Tue Feb  5 18:17:05 UTC 2013

Modified Files:
        src/sys/dev/usb: if_urtwn.c

Log Message:
don't count an output packet on a stall.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/usb/if_urtwn.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/usb/if_urtwn.c
diff -u src/sys/dev/usb/if_urtwn.c:1.20 src/sys/dev/usb/if_urtwn.c:1.21
--- src/sys/dev/usb/if_urtwn.c:1.20	Tue Feb  5 13:15:04 2013
+++ src/sys/dev/usb/if_urtwn.c	Tue Feb  5 13:17:05 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_urtwn.c,v 1.20 2013/02/05 18:15:04 christos Exp $	*/
+/*	$NetBSD: if_urtwn.c,v 1.21 2013/02/05 18:17:05 christos Exp $	*/
 /*	$OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $	*/
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.20 2013/02/05 18:15:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.21 2013/02/05 18:17:05 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2131,7 +2131,6 @@ urtwn_txeof(usbd_xfer_handle xfer, usbd_
 	s = splnet();
 	sc->tx_timer = 0;
 	ifp->if_flags &= ~IFF_OACTIVE;
-	ifp->if_opackets++;
 
 	if (__predict_false(status != USBD_NORMAL_COMPLETION)) {
 		if (status != USBD_NOT_STARTED && status != USBD_CANCELLED) {
@@ -2143,6 +2142,7 @@ urtwn_txeof(usbd_xfer_handle xfer, usbd_
 		return;
 	}
 
+	ifp->if_opackets++;
 	urtwn_start(ifp);
 
 	splx(s);

Reply via email to