From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5BEDD8DA5 for ; Tue, 27 Oct 2015 11:22:32 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 27 Oct 2015 03:22:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,204,1444719600"; d="scan'208";a="835994614" Received: from sie-lab-212-222.ir.intel.com (HELO silpixa00366884.ir.intel.com) ([10.237.212.222]) by orsmga002.jf.intel.com with ESMTP; 27 Oct 2015 03:22:29 -0700 From: Harry van Haaren To: dev@dpdk.org Date: Tue, 27 Oct 2015 10:22:14 +0000 Message-Id: <1445941334-32248-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 1.9.1 Cc: Harry van Haaren Subject: [dpdk-dev] [PATCH] ixgbe: add mspdc to rx errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 10:22:32 -0000 This patch adds the mspdc (MAC Short Packet Discard Count) to the total rx errors, as discussed on the dev@dpdk mailing list: http://comments.gmane.org/gmane.comp.networking.dpdk.devel/23717 Suggested-by: Igor Ryzhov Signed-off-by: Harry van Haaren --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ec2918c..3221615 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -2196,6 +2196,7 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) /* Rx Errors */ stats->ierrors = hw_stats->crcerrs + + hw_stats->mspdc + hw_stats->rlec + hw_stats->ruc + hw_stats->roc + -- 1.9.1