Author: yongari
Date: Sun Oct 24 21:26:41 2010
New Revision: 214300
URL: http://svn.freebsd.org/changeset/base/214300

Log:
  MFC r213438:
    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:
  stable/8/sys/dev/usb/net/usb_ethernet.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/usb/net/usb_ethernet.c
==============================================================================
--- stable/8/sys/dev/usb/net/usb_ethernet.c     Sun Oct 24 21:25:15 2010        
(r214299)
+++ stable/8/sys/dev/usb/net/usb_ethernet.c     Sun Oct 24 21:26:41 2010        
(r214300)
@@ -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);
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to