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.
This commit is contained in:
yongari 2010-10-04 23:25:38 +00:00
parent 8b107fd759
commit 84201054d4

View File

@ -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);
}