From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id 175A88E56 for ; Fri, 6 Nov 2015 02:04:33 +0100 (CET) Received: by pasz6 with SMTP id z6so107810244pas.2 for ; Thu, 05 Nov 2015 17:04:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xixzHu7/oErUmBtGe+kLptJ0oK/9NqfT2Jwsg++QgVQ=; b=ILCLaJ5uiQeVRI88SvuIMkC1xH7MBeUxYLdi8u4L3mrSjH0qZr3c8BKtxKak/uYES8 S+UBZpFVmitjD+0SgYtJ8WzW7T7hMBgbuWG736YruPoykYN1zSsmI2XQIWD5Oj+0pNDf ftmI6Iusm1y32pIPJe7MaKhI6LuPc65WI4Kutgb+MLtJk7AduSecDTLBhMFxgJHR7QDy G2wvVhGfINfp4BoGjTmCxldN9v4G0Q3Xs7wih88Y48ZmT2h8upF/3VT1Jhcyk4pMcQRz XfrGvRlGYwoIXM1+VJ6epovg9mrBD0sW53651e28FiLiB2k++9UoMBHM+J1JYeFskdwi vozg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xixzHu7/oErUmBtGe+kLptJ0oK/9NqfT2Jwsg++QgVQ=; b=N//UP/ewpGhumzpuAp1A56rFc4oo0EiFQXKJ8+huLtoeK/RHdGUv4QOWyJt0c+nOL4 4AnTXgnoUblDOSaiu/s+Fwm1DBp7QCtHBtkWdfcVS4X0l39BGvoqjZ8f0Sv8n17hulob Rj67GIhEY83sztCDIh3c3d3P8sSvh3zfoTDtyLvMeTMgVoAFNcvgq0BmPdCPVJHHp4HM 6mGwVNUIVYvvwx4KvzxUN2wyRAzBSowcxAMI+t5WZuT9t28dLPkmCD1tvUibJmrpf7MC YhWG8M8Be5+6Al+fJKXUeORVKhpfZYGwXY2UKw+8VNZmd6oKzGVaNDp3bHnONhtiWbxi f5zQ== X-Gm-Message-State: ALoCoQkbjexQPFnrftNi1wycNDqRhGqfxZ2QyayTBvokHD4INS+vc8b1whDajVUpgyrRAqZmlZqi X-Received: by 10.66.124.135 with SMTP id mi7mr13636142pab.102.1446771872440; Thu, 05 Nov 2015 17:04:32 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id qn5sm10105951pac.41.2015.11.05.17.04.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Nov 2015 17:04:31 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 5 Nov 2015 17:04:36 -0800 Message-Id: <1446771879-3979-5-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446771879-3979-1-git-send-email-stephen@networkplumber.org> References: <1446771879-3979-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 4/7] i40e: don't report deprecated statistics 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: Fri, 06 Nov 2015 01:04:33 -0000 The fields in ethernet statistics that are marked deprecated should not be filled in. Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_ethdev.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index ddf3d38..c6ee6f9 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2043,15 +2043,14 @@ i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->oerrors = ns->eth.tx_errors + pf->main_vsi->eth_stats.tx_errors; stats->imcasts = pf->main_vsi->eth_stats.rx_multicast; - stats->fdirmatch = ns->fd_sb_match; /* Rx Errors */ - stats->ibadcrc = ns->crc_errors; - stats->ibadlen = ns->rx_length_errors + ns->rx_undersize + - ns->rx_oversize + ns->rx_fragments + ns->rx_jabber; stats->imissed = ns->eth.rx_discards + pf->main_vsi->eth_stats.rx_discards; - stats->ierrors = stats->ibadcrc + stats->ibadlen + stats->imissed; + stats->ierrors = ns->crc_errors + + ns->rx_length_errors + ns->rx_undersize + + ns->rx_oversize + ns->rx_fragments + ns->rx_jabber + + stats->imissed; PMD_DRV_LOG(DEBUG, "***************** PF stats start *******************"); PMD_DRV_LOG(DEBUG, "rx_bytes: %"PRIu64"", ns->eth.rx_bytes); -- 2.1.4