Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 2010 21:26:41 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r214300 - stable/8/sys/dev/usb/net
Message-ID:  <201010242126.o9OLQfsL040713@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010242126.o9OLQfsL040713>