Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb PR/54297: sc dying: opacket of ure(4) is always 0
details: https://anonhg.NetBSD.org/src/rev/551e7e5bae10
branches: trunk
changeset: 457210:551e7e5bae10
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 16 14:47:49 2019 +0000
description:
PR/54297: sc dying: opacket of ure(4) is always 0
diffstat:
sys/dev/usb/if_ure.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r b36e79bb4aff -r 551e7e5bae10 sys/dev/usb/if_ure.c
--- a/sys/dev/usb/if_ure.c Sun Jun 16 13:02:29 2019 +0000
+++ b/sys/dev/usb/if_ure.c Sun Jun 16 14:47:49 2019 +0000
@@ -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 <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.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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index