Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765Ab1ESAPP (ORCPT ); Wed, 18 May 2011 20:15:15 -0400 Received: from smtp-out.google.com ([216.239.44.51]:35931 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344Ab1ESAPN (ORCPT ); Wed, 18 May 2011 20:15:13 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to: references:organization; b=wRdi1ieoZLHCcArzfHrY9J2U9SgbtlCDCjokKnngREnnzAvZbBuuzitlyj4Qfjw5i OBi5buGpwsQMWkdcTjRbQ== From: David Decotigny To: "David S. Miller" , Joe Perches , Szymon Janc , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-net-upstream@google.com, Sameer Nanda , David Decotigny Subject: [PATCH 2/6] forcedeth: new ethtool stat "tx_timeout" to account for tx_timeouts Date: Wed, 18 May 2011 17:14:36 -0700 Message-Id: <1305764080-24853-2-git-send-email-decot@google.com> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1305764080-24853-1-git-send-email-decot@google.com> References: <1305764080-24853-1-git-send-email-decot@google.com> Organization: Google, Inc. Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 48 From: Sameer Nanda This change publishes a new ethtool stats: tx_timeout that counts the number of times the tx_timeout callback was triggered. Signed-off-by: David Decotigny --- drivers/net/forcedeth.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 895471d..112dc0b 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c @@ -632,6 +632,7 @@ static const struct nv_ethtool_str nv_estats_str[] = { { "rx_packets" }, { "rx_errors_total" }, { "tx_errors_total" }, + { "tx_timeout" }, /* version 2 stats */ { "tx_deferral" }, @@ -672,6 +673,7 @@ struct nv_ethtool_stats { u64 rx_packets; u64 rx_errors_total; u64 tx_errors_total; + u64 tx_timeout; /* version 2 stats */ u64 tx_deferral; @@ -2526,6 +2528,8 @@ static void nv_tx_timeout(struct net_device *dev) spin_lock_irq(&np->lock); + np->estats.tx_timeout++; + /* 1) stop tx engine */ nv_stop_tx(dev); -- 1.7.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/