Module Name:    src
Committed By:   christos
Date:           Sun Jun 16 21:04:09 UTC 2019

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

Log Message:
Always increment, not just if we are queueing.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/usb/if_ure.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_ure.c
diff -u src/sys/dev/usb/if_ure.c:1.9 src/sys/dev/usb/if_ure.c:1.10
--- src/sys/dev/usb/if_ure.c:1.9	Sun Jun 16 10:47:49 2019
+++ src/sys/dev/usb/if_ure.c	Sun Jun 16 17:04:08 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ure.c,v 1.9 2019/06/16 14:47:49 christos Exp $	*/
+/*	$NetBSD: if_ure.c,v 1.10 2019/06/16 21:04:08 christos Exp $	*/
 /*	$OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $	*/
 /*-
  * Copyright (c) 2015-2016 Kevin Lo <ke...@freebsd.org>
@@ -29,7 +29,7 @@
 /* RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.9 2019/06/16 14:47:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.10 2019/06/16 21:04:08 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1517,9 +1517,9 @@ ure_txeof(struct usbd_xfer *xfer, void *
 	}
 
 	ifp->if_flags &= ~IFF_OACTIVE;
+	ifp->if_opackets++;
 
 	if (!IFQ_IS_EMPTY(&ifp->if_snd)) {
-		ifp->if_opackets++;
 		ure_start(ifp);
 	}
 

Reply via email to