NetBSD-Bugs archive

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

kern/54297: opacket of ure(4) is always 0



>Number:         54297
>Category:       kern
>Synopsis:       opacket of ure(4) is always 0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 16 08:25:00 +0000 2019
>Originator:     sc.dying%gmail.com@localhost
>Release:        NetBSD/earmv7hf 8.99.42
>Organization:
>Environment:
System: NetBSD  8.99.42 NetBSD 8.99.42 (GENERIC) #0: Fri May 31 16:38:27 UTC 2019  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm earmv7hf
Architecture: earmv7hf
Machine: evbarm
>Description:
	Opkts field of netstat -i for ure(4) is always 0.
	Ipkts increases when it receives.
>How-To-Repeat:
	connect and configure ure and send some packets.
>Fix:
	ure_txeof should increment ifp->if_opackets.


--- sys/dev/usb/if_ure.c	Jun 13 2019 23:38:35 -0000
+++ sys/dev/usb/if_ure.c	Jun 14 2019 00:46:40 -0000
@@ -1516,6 +1516,7 @@ ure_txeof(struct usbd_xfer *xfer, void *
 		return;
 	}
 
+	ifp->if_opackets++;
 	ifp->if_flags &= ~IFF_OACTIVE;
 
 	if (IFQ_IS_EMPTY(&ifp->if_snd) == 0)



Home | Main Index | Thread Index | Old Index