svn commit: r213438 - head/sys/dev/usb/net
Pyun YongHyeon
yongari at FreeBSD.org
Mon Oct 4 23:25:39 UTC 2010
Author: yongari
Date: Mon Oct 4 23:25:38 2010
New Revision: 213438
URL: http://svn.freebsd.org/changeset/base/213438
Log:
RX buffer allocation failure is not an input error. Controller
successfully received a frame but we failed to pass it to upper
stack due to lack of resources. So update if_iqdrops counter
instead of updating if_ierrors counter.
Modified:
head/sys/dev/usb/net/usb_ethernet.c
Modified: head/sys/dev/usb/net/usb_ethernet.c
==============================================================================
--- head/sys/dev/usb/net/usb_ethernet.c Mon Oct 4 23:22:03 2010 (r213437)
+++ head/sys/dev/usb/net/usb_ethernet.c Mon Oct 4 23:25:38 2010 (r213438)
@@ -558,7 +558,7 @@ uether_rxbuf(struct usb_ether *ue, struc
m = uether_newbuf();
if (m == NULL) {
- ifp->if_ierrors++;
+ ifp->if_iqdrops++;
return (ENOMEM);
}
More information about the svn-src-head
mailing list