From owner-svn-src-head@FreeBSD.ORG  Mon Oct  4 23:25:39 2010
Return-Path: <owner-svn-src-head@FreeBSD.ORG>
Delivered-To: svn-src-head@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 21DFD1065675;
	Mon,  4 Oct 2010 23:25:39 +0000 (UTC)
	(envelope-from yongari@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c])
	by mx1.freebsd.org (Postfix) with ESMTP id CD7658FC15;
	Mon,  4 Oct 2010 23:25:38 +0000 (UTC)
Received: from svn.freebsd.org (localhost [127.0.0.1])
	by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o94NPcdN030950;
	Mon, 4 Oct 2010 23:25:38 GMT (envelope-from yongari@svn.freebsd.org)
Received: (from yongari@localhost)
	by svn.freebsd.org (8.14.3/8.14.3/Submit) id o94NPc9g030948;
	Mon, 4 Oct 2010 23:25:38 GMT (envelope-from yongari@svn.freebsd.org)
Message-Id: <201010042325.o94NPc9g030948@svn.freebsd.org>
From: Pyun YongHyeon <yongari@FreeBSD.org>
Date: Mon, 4 Oct 2010 23:25:38 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
	svn-src-head@freebsd.org
X-SVN-Group: head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: 
Subject: svn commit: r213438 - head/sys/dev/usb/net
X-BeenThere: svn-src-head@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: SVN commit messages for the src tree for head/-current
	<svn-src-head.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-head>,
	<mailto:svn-src-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-head>
List-Post: <mailto:svn-src-head@freebsd.org>
List-Help: <mailto:svn-src-head-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-head>,
	<mailto:svn-src-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Oct 2010 23:25:39 -0000

Author: yongari
Date: Mon Oct  4 23:25:38 2010
New Revision: 213438
URL: http://svn.freebsd.org/changeset/base/213438

Log:
  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:
  head/sys/dev/usb/net/usb_ethernet.c

Modified: head/sys/dev/usb/net/usb_ethernet.c
==============================================================================
--- head/sys/dev/usb/net/usb_ethernet.c	Mon Oct  4 23:22:03 2010	(r213437)
+++ head/sys/dev/usb/net/usb_ethernet.c	Mon Oct  4 23:25:38 2010	(r213438)
@@ -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);
 	}