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 6A50C8E5A for ; Sat, 17 Oct 2015 02:14:35 +0200 (CEST) Received: by payp3 with SMTP id p3so2912673pay.2 for ; Fri, 16 Oct 2015 17:14:34 -0700 (PDT) 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=DvVypbISrBG/OqBBLZBVWZz1xcOcM5pms2jYsoWnpQY=; b=XZRg/fAhiQBI0NpKJiSKy+v0Ibjw9SH8BgbXaUClLYUtF9aZVF3buGp4lCHZH3NEEw QklqQ7a9ij+EUQnDw4a0AqgW+MXS1+hUHM9xDscCiWbfwpEKNBAMR3uuVhuhtFunoILH /E1ibDIpw91YpZaJttogaAQx67eMjPCUTM/Ow4Z4zIWajPaItcDiPLT60JIR+PZ474pw d+wl9oTxZ2Z8pA/pN8ATToevFgmVBqrRkY35ZsnumLDYnsRT1sMZ1E7e/WHrUHdgAVcc Lkr4z3AAzL/nMg/uScGLRPhaF9vBf9oodrT0Glks5xkg0PJBTx/kn7KC9NZB3Po8vmU6 jLFA== X-Gm-Message-State: ALoCoQmxsGr2MAQmHFEMCSlBjvBYLCvVzvkKwMCW9vYg7EErrqq+IBO2AkujRsxU9A2FE2OIQMnp X-Received: by 10.66.240.37 with SMTP id vx5mr19580821pac.76.1445040874857; Fri, 16 Oct 2015 17:14:34 -0700 (PDT) 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 qy7sm23431097pab.37.2015.10.16.17.14.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 17:14:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 16 Oct 2015 17:14:38 -0700 Message-Id: <1445040882-31006-6-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445040882-31006-1-git-send-email-stephen@networkplumber.org> References: <1445040882-31006-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 5/9] 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: Sat, 17 Oct 2015 00:14:36 -0000 From: Stephen Hemminger 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 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 2dd9fdc..9d3341d 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1518,15 +1518,12 @@ i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->ibytes = ns->eth.rx_bytes; stats->obytes = ns->eth.tx_bytes; stats->oerrors = ns->eth.tx_errors; - stats->imcasts = ns->eth.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; - 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 + + ns->eth.rx_discards; PMD_DRV_LOG(DEBUG, "***************** PF stats start *******************"); PMD_DRV_LOG(DEBUG, "rx_bytes: %"PRIu64"", ns->eth.rx_bytes); -- 2.1.4