Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb don't count an output packet on a stall.



details:   https://anonhg.NetBSD.org/src/rev/e9fbd0efc01d
branches:  trunk
changeset: 784681:e9fbd0efc01d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 05 18:17:05 2013 +0000

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

diffstat:

 sys/dev/usb/if_urtwn.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 406f73779386 -r e9fbd0efc01d sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Tue Feb 05 18:15:04 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c    Tue Feb 05 18:17:05 2013 +0000
@@ -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 @@
        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 @@
                return;
        }
 
+       ifp->if_opackets++;
        urtwn_start(ifp);
 
        splx(s);



Home | Main Index | Thread Index | Old Index