From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id D2DBB8E7B for ; Fri, 6 Nov 2015 02:04:33 +0100 (CET) Received: by pacdm15 with SMTP id dm15so79552452pac.3 for ; Thu, 05 Nov 2015 17:04:33 -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=p3SIpMYF86FX5PIbyh4QNKVDLSX7kFFfhywjBYLAoao=; b=Cw7VwNEFMpYMbitwrgHVf+8LQIZTz6Bby0GBxl4XjuB0NMV8CvXiJsS3fI+k+ZWfbx xHsaWQjr3wmt9sffW/8mTGPos34bxBrJjJGsPBGYgDfyashTFx2Gt5RzpKBlZicOPTWi XSEFD2T7O8KHKnrE0ngRkiouHh02fpuGcu9+r0mGUGfLyRLv88un1J6bSyFEdD6uKy+V ScRY9U9Tzkwgb5LD0xI6Fvle8QzE2lCNqt099D082MRabVvaCkF/iqXkz0hjTjPokyX8 q4kn4Sxs7Ut5wFBApnWqEAGr3Gwdv45fQv5z1zfUz1eRyzoyilp87v+79zEh1PkpEp5c tNSQ== 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=p3SIpMYF86FX5PIbyh4QNKVDLSX7kFFfhywjBYLAoao=; b=j9bUNELezTO/CFMlrtCRnmnMPz5uvddItIs22r6aJiTnhEBAy4hShqTxRn1QfcuVfE gKEB8U6T2SjBAXzuOJxVr7WhAuYkw1lvtcS4f4ES1NVGvqRNcKsdKC0+WLUHyx106lWw OuSCmgmUe6c8M5ojXotNNLBLB5rN4K4g+kyzwLpx6LdSUa9ie6uqdO+kkpkr8YdziM5O vDFdJtibelJScTAeg9uqKxEzf1EScavaD6QEpFGqJVtc0l/D8dvFqpVFIeO9Ra/UUAqd 5gV32wksKYWXLnIt0qVO2GqXp8ZUJmqTIEoVOcodbZ1eeBTlYl2zUNTHu4a0ohz5Xi0I jiOg== X-Gm-Message-State: ALoCoQkA0UGS/sQG81koBuQnKvkuT/jMfOfkHwljsXR3VBlDR1lQQV2mYssB1Rip1FZhdoAD34cG X-Received: by 10.66.153.139 with SMTP id vg11mr13302678pab.118.1446771873201; Thu, 05 Nov 2015 17:04:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Nov 2015 17:04:32 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 5 Nov 2015 17:04:37 -0800 Message-Id: <1446771879-3979-6-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 5/7] e1000: 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:34 -0000 These fields are marked deprecated don't use them. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 12 ++---------- drivers/net/e1000/igb_ethdev.c | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 500985d..3e81109 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -911,11 +911,9 @@ eth_em_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats) return; /* Rx Errors */ - rte_stats->ibadcrc = stats->crcerrs; - rte_stats->ibadlen = stats->rlec + stats->ruc + stats->roc; rte_stats->imissed = stats->mpc; - rte_stats->ierrors = rte_stats->ibadcrc + - rte_stats->ibadlen + + rte_stats->ierrors = stats->crcerrs + + stats->rlec + stats->ruc + stats->roc + rte_stats->imissed + stats->rxerrc + stats->algnerrc + stats->cexterr; @@ -926,12 +924,6 @@ eth_em_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats) rte_stats->opackets = stats->gptc; rte_stats->ibytes = stats->gorc; rte_stats->obytes = stats->gotc; - - /* XON/XOFF pause frames stats registers */ - rte_stats->tx_pause_xon = stats->xontxc; - rte_stats->rx_pause_xon = stats->xonrxc; - rte_stats->tx_pause_xoff = stats->xofftxc; - rte_stats->rx_pause_xoff = stats->xoffrxc; } static void diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 2cb115c..6638247 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1589,23 +1589,15 @@ eth_igb_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats) return; /* Rx Errors */ - rte_stats->ibadcrc = stats->crcerrs; - rte_stats->ibadlen = stats->rlec + stats->ruc + stats->roc; rte_stats->imissed = stats->mpc; - rte_stats->ierrors = rte_stats->ibadcrc + - rte_stats->ibadlen + + rte_stats->ierrors = stats->crcerrs + + stats->rlec + stats->ruc + stats->roc + rte_stats->imissed + stats->rxerrc + stats->algnerrc + stats->cexterr; /* Tx Errors */ rte_stats->oerrors = stats->ecol + stats->latecol; - /* XON/XOFF pause frames */ - rte_stats->tx_pause_xon = stats->xontxc; - rte_stats->rx_pause_xon = stats->xonrxc; - rte_stats->tx_pause_xoff = stats->xofftxc; - rte_stats->rx_pause_xoff = stats->xoffrxc; - rte_stats->ipackets = stats->gprc; rte_stats->opackets = stats->gptc; rte_stats->ibytes = stats->gorc; -- 2.1.4