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 B95BC8E86 for ; Sat, 17 Oct 2015 02:14:34 +0200 (CEST) Received: by pabws5 with SMTP id ws5so3642590pab.1 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=JbpF/RFNkUbFbg7DfP8UutqrvCSXxJWFb+tEtDEnFiw=; b=eyq4JsiVuB3Z+0fFXSQ5Ea0miJ7kiJYDt1VBrxoD4e31BHvk9/Hh179nOiLkhnmzug AnVDveLlImR2UroYAnsY0+iTBOqe8SWHm+x7utA1qWw9oETRZ7spUln0s6TLe+2ZxqoW oH8tOKXcR4cbA3jDxV7RAjElis8VJoctPBHLIVON+x+q+AY8XuZxiKi47fgplpiQkomC 8WnRWTkqaQ912U2G4lrDOcEzoyGYobzAe5mV3jEzI4eLYdWJn8aDkco9kwfKeAp3EtnL N3cBOQQE6rsV/QmhIMKmaHqyUUCuRoaKc3IIW3AWk+MqkMWD7jWWakIL86jmaFlcfisc dEfw== X-Gm-Message-State: ALoCoQmSpF3Lis1ls0E2BlKne/e86Xh0ujEzHvx9ZtFDqhowHJSnL9WrBKvO9e1jaAt1TiQNvi31 X-Received: by 10.66.230.169 with SMTP id sz9mr19557372pac.136.1445040874176; 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.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 17:14:33 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 16 Oct 2015 17:14:37 -0700 Message-Id: <1445040882-31006-5-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 4/9] cxgbe: 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:35 -0000 From: Stephen Hemminger Some of the ethernet device statistics are marked deprecated and should not be reported. Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/cxgbe_ethdev.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index 478051a..5d2bac3 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -578,23 +578,17 @@ static void cxgbe_dev_stats_get(struct rte_eth_dev *eth_dev, /* RX Stats */ eth_stats->ipackets = ps.rx_frames; eth_stats->ibytes = ps.rx_octets; - eth_stats->imcasts = ps.rx_mcast_frames; - eth_stats->imissed = ps.rx_ovflow0 + ps.rx_ovflow1 + + eth_stats->ierrors = ps.rx_symbol_err + ps.rx_fcs_err + + ps.rx_jabber + ps.rx_too_long + ps.rx_runt + + ps.rx_len_err + ps.rx_ovflow0 + ps.rx_ovflow1 + ps.rx_ovflow2 + ps.rx_ovflow3 + - ps.rx_trunc0 + ps.rx_trunc1 + - ps.rx_trunc2 + ps.rx_trunc3; - eth_stats->ibadcrc = ps.rx_fcs_err; - eth_stats->ibadlen = ps.rx_jabber + ps.rx_too_long + ps.rx_runt; - eth_stats->ierrors = ps.rx_symbol_err + eth_stats->ibadcrc + - eth_stats->ibadlen + ps.rx_len_err + - eth_stats->imissed; - eth_stats->rx_pause_xon = ps.rx_pause; + ps.rx_trunc0 + ps.rx_trunc1 + + ps.rx_trunc2 + ps.rx_trunc3; /* TX Stats */ eth_stats->opackets = ps.tx_frames; eth_stats->obytes = ps.tx_octets; eth_stats->oerrors = ps.tx_error_frames; - eth_stats->tx_pause_xon = ps.tx_pause; for (i = 0; i < pi->n_rx_qsets; i++) { struct sge_eth_rxq *rxq = -- 2.1.4