From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id F33048E90 for ; Sat, 17 Oct 2015 02:14:36 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so36041346pac.3 for ; Fri, 16 Oct 2015 17:14:36 -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=m1gjWR9eG3dAsms06Jf861g51MiMIx2XOgzT1JO7e9g=; b=PVa4TzNjxeFuEa0lWkMTr4bzqEmdG8aDPGlGMZcYTBtHgN5Opbd5CHU6jZK9WbtwVN D07u9cjatKMRvbz75g3Owmtj9WORX6XwYNSug69HIPM7R8RlNR6sJOe0q0MfYd6/Gkx6 kvc1LS+1quyrwZL6jvowHW+JLiTSOcbWX5HlsX0lT4X4uZYWHeTTrboVSYIHZEE9GXSg Gq8SSCD7zvW91beq1fiMsVooHZtEDA+uFacJnAInx56eBXMIB+DiwN188PXok6RKJADr dzc1rjgxgTai2ELE6di4AU2ECMQcW/LJePWdi8JpNEgOnla5tFMs2q9oBR4B7JlGSIcQ 5c9g== X-Gm-Message-State: ALoCoQnayk4Ya/HSN7uowVIDKK23qCrQJ8sPiWk22e9jM4UMC68xbIm9w3kzpGbcwKiPPJkcP1Wj X-Received: by 10.66.160.34 with SMTP id xh2mr20114367pab.67.1445040876343; Fri, 16 Oct 2015 17:14:36 -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.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 17:14:35 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 16 Oct 2015 17:14:40 -0700 Message-Id: <1445040882-31006-8-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 7/9] 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: Sat, 17 Oct 2015 00:14:37 -0000 From: Stephen Hemminger These fields are marked deprecated don't use them. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 15 +++------------ drivers/net/e1000/igb_ethdev.c | 15 ++------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 912f5dd..9e1f105 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -846,12 +846,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->imissed + + rte_stats->ierrors = stats->crcerrs + + stats->rlec + stats->ruc + stats->roc + + stats->mpc + stats->rxerrc + stats->algnerrc + stats->cexterr; /* Tx Errors */ @@ -861,12 +858,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 848ef6e..749a41c 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1370,23 +1370,13 @@ 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->imissed + + rte_stats->ierrors = stats->crcerrs + stats->rlec + + stats->ruc + stats->roc + stats->mpc + 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; @@ -1456,7 +1446,6 @@ eth_igbvf_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats) rte_stats->ibytes = hw_stats->gorc; rte_stats->opackets = hw_stats->gptc; rte_stats->obytes = hw_stats->gotc; - rte_stats->imcasts = hw_stats->mprc; rte_stats->ilbpackets = hw_stats->gprlbc; rte_stats->ilbbytes = hw_stats->gorlbc; rte_stats->olbpackets = hw_stats->gptlbc; -- 2.1.4