From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id 6CDBA2C8 for ; Tue, 20 Jun 2017 13:37:55 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id y7so22256680pfd.3 for ; Tue, 20 Jun 2017 04:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ajeqGn3+EFO6BmigJKtdSh3Fy+9Z2jFISyA++fhpiiI=; b=IDpXPOcGKUdZif1+3C/9nJnUFMHYJyCYi4WK4ZDtyJ0+2T0a/FDtNxog03fQy7fJIy xNryThGC65lcSduCUZbtDDIS1ASC2yUptz6250j2e7HP35G/uOzN3SPgtEhghFIGJZLI nkXOw19iNL/0U1nEAVjYIkYlKP1vwenoFD64NGiD9wN4x83MxVv4Qbs8jl1GN25lCjao zXaALuD3bjmqrZUknb+oScLob4xa/8cTX9Cg1l56yEuL429UAkqAd97305psqsCu995x c8uwMY9ohwZeuny2b6fNTS8W7T5c/nOUxe2983vTUKWI/SoNHP347w67yeoXlLxeMr9j au6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ajeqGn3+EFO6BmigJKtdSh3Fy+9Z2jFISyA++fhpiiI=; b=UMgBCAG1UsD0U4spYgU0dPnwbMrup6gPsp5aXuHt6CD9zF/I2XGIrv6btB+Up8PMom yzm3crK0omjzLzvpMvGZh9bfcQFTF+vbR1Lat9UNXB3H1+NZecV8+CdxXUwey+2HwwHM J2+o36ck7oZ5MdIoMC5zJoZyR6V/8oF7iLubVL3Ius+yJKqOJg8baeqBbMfOkFduSbqU N8ItdUyJJXtK/uAg6K6V4xGr0y53Zcnq+yUltT7/Rp7gQOCtW9hjqu+7TId1v/RQvML5 0iw3qtoauEugMboloVnNwqVfscNy/i4X9EsdYHiaWX3zd4GFeHNf9I//DTXIXxlyQdyV RxkQ== X-Gm-Message-State: AKS2vOxIzDU3gOoWMQxxbaG7UH07j1xnc9zsAMyLAZK7U4h71RU9XqWz kZLJQNMAs3l1yVTK X-Received: by 10.99.2.146 with SMTP id 140mr26196137pgc.56.1497958674597; Tue, 20 Jun 2017 04:37:54 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.37.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:37:53 -0700 (PDT) From: Yuanhan Liu To: Qi Zhang Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:39 +0800 Message-Id: <1497958550-13600-27-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/i40e: fix VF statistics' has been queued to stable release 17.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 11:37:55 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From faf7f29e1b632d8f2db4d9c7b71f594240f0c4e0 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Mon, 5 Jun 2017 17:14:20 -0400 Subject: [PATCH] net/i40e: fix VF statistics [ upstream commit 98abce237ba75e06e30f92bf361bc0de22098cb4 ] CRC bytes should be excluded, so rx/tx bytes of VF stats is aligned with PF stats. Fixes: 9aace75fc82e ("i40e: fix statistics") Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 2d648c2..fd7d347 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2329,6 +2329,10 @@ i40e_update_vsi_stats(struct i40e_vsi *vsi) i40e_stat_update_48(hw, I40E_GLV_BPRCH(idx), I40E_GLV_BPRCL(idx), vsi->offset_loaded, &oes->rx_broadcast, &nes->rx_broadcast); + /* exclude CRC bytes */ + nes->rx_bytes -= (nes->rx_unicast + nes->rx_multicast + + nes->rx_broadcast) * ETHER_CRC_LEN; + i40e_stat_update_32(hw, I40E_GLV_RDPC(idx), vsi->offset_loaded, &oes->rx_discards, &nes->rx_discards); /* GLV_REPC not supported */ @@ -2348,6 +2352,9 @@ i40e_update_vsi_stats(struct i40e_vsi *vsi) i40e_stat_update_48(hw, I40E_GLV_BPTCH(idx), I40E_GLV_BPTCL(idx), vsi->offset_loaded, &oes->tx_broadcast, &nes->tx_broadcast); + /* exclude CRC bytes */ + nes->tx_bytes -= (nes->tx_unicast + nes->tx_multicast + + nes->tx_broadcast) * ETHER_CRC_LEN; /* GLV_TDPC not supported */ i40e_stat_update_32(hw, I40E_GLV_TEPC(idx), vsi->offset_loaded, &oes->tx_errors, &nes->tx_errors); -- 2.7.4