From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 543384A63 for ; Fri, 6 Nov 2015 02:04:31 +0100 (CET) Received: by pasz6 with SMTP id z6so107809472pas.2 for ; Thu, 05 Nov 2015 17:04:30 -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=NN8zuFJlRKasjeUzTZFqQVYwUX7teLv6tXBhciECStk=; b=YHHpkx9cCz8T/duSg6jzXuFQKpxS1yjW5YRPpnZgE67NnxbTUurlKx1EykSG/qImOt KdaMeqUoX7fUQ//T9pdT+UTHahp2cBu6+LnBfmgP9JpaRT7JsvpsSYINFjZVPQdb1XDu j/OYWo/loPQ7+eF89p2EWXa8F5yIxT41xLOSe79RiRYl6CApTszmBxAYUcJXnIyr1ZmV YajTif85cVoH14RclSPl2pN73Lyy5mibwF1MoupWwjLjQpLsMNYLYHjRu2ss4uK4Ed9P rCM6Q6BxTCramOCCaQ7JWpSOj4Sof1u0kRMhLlPYFK3PTmVx8dBqVFhx6hXNTevIk3ZL LFbg== 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=NN8zuFJlRKasjeUzTZFqQVYwUX7teLv6tXBhciECStk=; b=Ep/W1GyyxrkU7TM6VdIcWna4JuLd5lVFZzE7p7948W0SJfCISzkIxm3+KGQaaazPrJ Tu5rZlIHE/8dIirCG1xvAbaQrUuN0yNZsJCis8lWNssYtFTsuHmdGEmpTQh2Ynq/xbx7 F6qT3PJCuebMDs+u8Rap7/95dhSgQJ0RanjRIdkGeqU3qxXO3y6p2X07n5YDZCm2d+uv qvyniPwsUze2Xfk0+xszGR55fzbg4Qz9LjNST3PRanAw6gCCDlRpsTiq9JVLDBchXtlJ XrLnGWvfNeQGMxRjV5xo/xdhEaXY1dLVgqXf1UOBmRr2j5Vu81OJ9XDlCBk+EpthLogG Ka1Q== X-Gm-Message-State: ALoCoQkcZMnpz40OrXcgAn8vkmJTMDdFMzHU7CK1qpPxu0OMlFAcTZ9MRj7cvsGmlfQ3EROFD8O+ X-Received: by 10.66.146.130 with SMTP id tc2mr9085033pab.26.1446771870659; Thu, 05 Nov 2015 17:04:30 -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.29 (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:34 -0800 Message-Id: <1446771879-3979-3-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 2/7] bond: don't sum 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:31 -0000 These statistics are marked deprecated, leave them alone. Also keep track of imissed across all ports. Signed-off-by: Stephen Hemminger --- drivers/net/bonding/rte_eth_bond_pmd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index bbff664..a9cd9fa 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -1814,16 +1814,11 @@ bond_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->opackets += slave_stats.opackets; stats->ibytes += slave_stats.ibytes; stats->obytes += slave_stats.obytes; + stats->imissed += slave_stats.imissed; stats->ierrors += slave_stats.ierrors; stats->oerrors += slave_stats.oerrors; stats->imcasts += slave_stats.imcasts; stats->rx_nombuf += slave_stats.rx_nombuf; - stats->fdirmatch += slave_stats.fdirmatch; - stats->fdirmiss += slave_stats.fdirmiss; - stats->tx_pause_xon += slave_stats.tx_pause_xon; - stats->rx_pause_xon += slave_stats.rx_pause_xon; - stats->tx_pause_xoff += slave_stats.tx_pause_xoff; - stats->rx_pause_xoff += slave_stats.rx_pause_xoff; for (j = 0; j < RTE_ETHDEV_QUEUE_STAT_CNTRS; j++) { stats->q_ipackets[j] += slave_stats.q_ipackets[j]; -- 2.1.4