mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-09 13:42:56 +00:00
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:
parent
0acf6a648a
commit
ad05f0993c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213438
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user