From ad05f0993c72c20485d7c324fbd2705503771a36 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Mon, 4 Oct 2010 23:25:38 +0000 Subject: 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. --- sys/dev/usb/net/usb_ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/net/usb_ethernet.c b/sys/dev/usb/net/usb_ethernet.c index bd75cef96574..4a4526fe9c99 100644 --- a/sys/dev/usb/net/usb_ethernet.c +++ b/sys/dev/usb/net/usb_ethernet.c @@ -558,7 +558,7 @@ uether_rxbuf(struct usb_ether *ue, struct usb_page_cache *pc, m = uether_newbuf(); if (m == NULL) { - ifp->if_ierrors++; + ifp->if_iqdrops++; return (ENOMEM); } -- cgit v1.2.3