Module Name: src
Committed By: christos
Date: Sun Jun 16 14:47:49 UTC 2019
Modified Files:
src/sys/dev/usb: if_ure.c
Log Message:
PR/54297: sc dying: opacket of ure(4) is always 0
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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.8 src/sys/dev/usb/if_ure.c:1.9
--- src/sys/dev/usb/if_ure.c:1.8 Sun Jun 9 09:35:47 2019
+++ src/sys/dev/usb/if_ure.c Sun Jun 16 10:47:49 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ure.c,v 1.8 2019/06/09 13:35:47 mrg Exp $ */
+/* $NetBSD: if_ure.c,v 1.9 2019/06/16 14:47:49 christos Exp $ */
/* $OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $ */
/*-
* Copyright (c) 2015-2016 Kevin Lo <[email protected]>
@@ -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.8 2019/06/09 13:35:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.9 2019/06/16 14:47:49 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1518,8 +1518,10 @@ ure_txeof(struct usbd_xfer *xfer, void *
ifp->if_flags &= ~IFF_OACTIVE;
- if (IFQ_IS_EMPTY(&ifp->if_snd) == 0)
+ if (!IFQ_IS_EMPTY(&ifp->if_snd)) {
+ ifp->if_opackets++;
ure_start(ifp);
+ }
splx(s);
}