From patchwork Sat May 29 23:23:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Sutter X-Patchwork-Id: 53988 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C7589B7D2F for ; Sun, 30 May 2010 09:24:01 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755073Ab0E2XXr (ORCPT ); Sat, 29 May 2010 19:23:47 -0400 Received: from orbit.nwl.cc ([91.121.169.95]:45301 "EHLO orbit.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754598Ab0E2XXq (ORCPT ); Sat, 29 May 2010 19:23:46 -0400 Received: from orbit.nwl.cc (localhost [127.0.0.1]) by orbit.nwl.cc (Postfix) with ESMTP id DF59B4CD56; Sun, 30 May 2010 01:23:45 +0200 (CEST) Received: from base (localhost [127.0.0.1]) by orbit.nwl.cc (Postfix) with ESMTP id CA3124CD45; Sun, 30 May 2010 01:23:45 +0200 (CEST) From: Phil Sutter To: David Miller Cc: Florian Fainelli , netdev@vger.kernel.org Subject: [PATCH 3/3] korina: count RX DMA OVR as rx_fifo_error Date: Sun, 30 May 2010 01:23:36 +0200 X-Mailer: git-send-email 1.6.4.4 In-Reply-To: <1275175416-21267-2-git-send-email-phil@nwl.cc> References: <1275175416-21267-1-git-send-email-phil@nwl.cc> <1275175416-21267-2-git-send-email-phil@nwl.cc> Message-Id: <20100529232345.CA3124CD45@orbit.nwl.cc> X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This way, RX DMA overruns (actually being caused by overrun of the 512byte input FIFO) show up in ifconfig output. The rx_fifo_errors counter is unused otherwise. Signed-off-by: Phil Sutter --- drivers/net/korina.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/korina.c b/drivers/net/korina.c index 3e9b6b7..c7a9bef 100644 --- a/drivers/net/korina.c +++ b/drivers/net/korina.c @@ -376,7 +376,7 @@ static int korina_rx(struct net_device *dev, int limit) if (devcs & ETH_RX_LE) dev->stats.rx_length_errors++; if (devcs & ETH_RX_OVR) - dev->stats.rx_over_errors++; + dev->stats.rx_fifo_errors++; if (devcs & ETH_RX_CV) dev->stats.rx_frame_errors++; if (devcs & ETH_RX_CES)