Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Always increment, not just if we are queueing.



details:   https://anonhg.NetBSD.org/src/rev/1b683da98c9a
branches:  trunk
changeset: 999711:1b683da98c9a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 16 21:04:08 2019 +0000

description:
Always increment, not just if we are queueing.

diffstat:

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

diffs (29 lines):

diff -r 63262e72400b -r 1b683da98c9a sys/dev/usb/if_ure.c
--- a/sys/dev/usb/if_ure.c      Sun Jun 16 19:19:30 2019 +0000
+++ b/sys/dev/usb/if_ure.c      Sun Jun 16 21:04:08 2019 +0000
@@ -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 <kevlo%FreeBSD.org@localhost>
@@ -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 @@
        }
 
        ifp->if_flags &= ~IFF_OACTIVE;
+       ifp->if_opackets++;
 
        if (!IFQ_IS_EMPTY(&ifp->if_snd)) {
-               ifp->if_opackets++;
                ure_start(ifp);
        }
 



Home | Main Index | Thread Index | Old Index