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 402278DA8 for ; Fri, 6 Nov 2015 02:04:32 +0100 (CET) Received: by pasz6 with SMTP id z6so107809856pas.2 for ; Thu, 05 Nov 2015 17:04:31 -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=XOlJAMBSunXNZrKPJ1G8eE6gVo0CN+KK5tlgk0DIJzU=; b=dE1zdYEUGSP6CjgqWW5xOo9EwwWH1Jb25uDb3548J88p730RJIDaKl8QOehdx0Dt6Q bRL0jVTSVtZftutygSfDabmkHKQ6f3MRg2DzBtPaSW9xHPWMsD5iVPO4XbohHp+k3LZJ saN/Q+EOnZ1VLPlJcmecKro7s37SU1zKMxqQXDPK2jQULAolXeh+V3XKFj9reLVIOOXN beQYEc3nk4VyxQ3KX/mbyESQ8AcmwhS6Sgl47ZC+uprMA8WNcZ0xWaKc/peeJU/5dD7t LPYUQFOVw9c7HfRmiV7tP77skUENXWhz9dXQ3noH/HEKcjFjtzv6MdQ4ikYNjzsBcvrW tGwg== 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=XOlJAMBSunXNZrKPJ1G8eE6gVo0CN+KK5tlgk0DIJzU=; b=M+opXCw4fIqMD6QjL2pDNiZ6gvOpZZIqdbp4VdKI5K5hB/gr67glL6oJtkl/iwy4+E c8WtVE4EWayqNho7KkA0DslKKJjOaBotGAaN5HrMf/ukjrq9uIZo1l5mXSETNqnZ5arz ThuQoq+pqV1bDW6vkPwE3cnj5qTAMcelwxBACBKHB9ykioO6fHKSQhLac0iCrrJbr9DP 481jNAaQxFUsl/RhvFYoMSv+WUGfTbEsoJR7uMgcKfZX1I+olRMAMQjfqV1Ta0C7HYft hozoS3gf1PpzRupwb3Tql+EgJr+y8ACl/Np/D2iFtCLy6FExE/zDDmVB51meHLz/0rJ6 y7kw== X-Gm-Message-State: ALoCoQkP9PtFlQOlvpx9JzTcOtTaj5TF5o8/rzOSBR0cBsHUHUub1/qTrk6o/cRrmC02sJXRe4an X-Received: by 10.68.227.69 with SMTP id ry5mr13733094pbc.148.1446771871600; Thu, 05 Nov 2015 17:04:31 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Nov 2015 17:04:30 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 5 Nov 2015 17:04:35 -0800 Message-Id: <1446771879-3979-4-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 3/7] 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: Fri, 06 Nov 2015 01:04:32 -0000 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index 3ef787d..de46a09 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -660,18 +660,14 @@ static void cxgbe_dev_stats_get(struct rte_eth_dev *eth_dev, 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; + 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 + eth_stats->imissed; /* 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