diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-10-04 23:25:38 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-10-04 23:25:38 +0000 |
commit | ad05f0993c72c20485d7c324fbd2705503771a36 (patch) | |
tree | 048d8e634c6ef0d56cc67592476ac0664ee7b647 /sys/dev/usb | |
parent | 0acf6a648a992f87833b087304feced56f247f46 (diff) | |
download | src-ad05f0993c72c20485d7c324fbd2705503771a36.tar.gz src-ad05f0993c72c20485d7c324fbd2705503771a36.zip |
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.
Notes
Notes:
svn path=/head/; revision=213438
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/net/usb_ethernet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |