From patchwork Sun Apr 24 19:51:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 614216 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3qtKpp4TN4z9t5l for ; Mon, 25 Apr 2016 05:55:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbcDXTzZ (ORCPT ); Sun, 24 Apr 2016 15:55:25 -0400 Received: from [193.47.165.129] ([193.47.165.129]:53267 "EHLO mellanox.co.il" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752927AbcDXTyi (ORCPT ); Sun, 24 Apr 2016 15:54:38 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from saeedm@mellanox.com) with ESMTPS (AES256-SHA encrypted); 24 Apr 2016 22:54:09 +0300 Received: from reg-l-vrt-045-010.mtl.labs.mlnx. (reg-l-vrt-045-010.mtl.labs.mlnx [10.135.45.10]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id u3OJs9Nl015244; Sun, 24 Apr 2016 22:54:09 +0300 From: Saeed Mahameed To: "David S. Miller" Cc: netdev@vger.kernel.org, Or Gerlitz , Tal Alon , Eran Ben Elisha , Gal Pressman , Saeed Mahameed Subject: [PATCH net-next V1 03/11] net/mlx5e: Rename VPort counters Date: Sun, 24 Apr 2016 22:51:48 +0300 Message-Id: <1461527516-29290-4-git-send-email-saeedm@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1461527516-29290-1-git-send-email-saeedm@mellanox.com> References: <1461527516-29290-1-git-send-email-saeedm@mellanox.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Gal Pressman VPort and software counters names are confusing and may be unclear, all VPort counters now have a prefix of rx/tx_vport_*. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | 35 +++++++++++--------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h index 116320d..4f3a08d 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h @@ -115,32 +115,35 @@ struct mlx5e_vport_stats { }; static const struct counter_desc vport_stats_desc[] = { - { "rx_error_packets", VPORT_COUNTER_OFF(received_errors.packets) }, - { "rx_error_bytes", VPORT_COUNTER_OFF(received_errors.octets) }, - { "tx_error_packets", VPORT_COUNTER_OFF(transmit_errors.packets) }, - { "tx_error_bytes", VPORT_COUNTER_OFF(transmit_errors.octets) }, - { "rx_unicast_packets", + { "rx_vport_error_packets", + VPORT_COUNTER_OFF(received_errors.packets) }, + { "rx_vport_error_bytes", VPORT_COUNTER_OFF(received_errors.octets) }, + { "tx_vport_error_packets", + VPORT_COUNTER_OFF(transmit_errors.packets) }, + { "tx_vport_error_bytes", VPORT_COUNTER_OFF(transmit_errors.octets) }, + { "rx_vport_unicast_packets", VPORT_COUNTER_OFF(received_eth_unicast.packets) }, - { "rx_unicast_bytes", VPORT_COUNTER_OFF(received_eth_unicast.octets) }, - { "tx_unicast_packets", + { "rx_vport_unicast_bytes", + VPORT_COUNTER_OFF(received_eth_unicast.octets) }, + { "tx_vport_unicast_packets", VPORT_COUNTER_OFF(transmitted_eth_unicast.packets) }, - { "tx_unicast_bytes", + { "tx_vport_unicast_bytes", VPORT_COUNTER_OFF(transmitted_eth_unicast.octets) }, - { "rx_multicast_packets", + { "rx_vport_multicast_packets", VPORT_COUNTER_OFF(received_eth_multicast.packets) }, - { "rx_multicast_bytes", + { "rx_vport_multicast_bytes", VPORT_COUNTER_OFF(received_eth_multicast.octets) }, - { "tx_multicast_packets", + { "tx_vport_multicast_packets", VPORT_COUNTER_OFF(transmitted_eth_multicast.packets) }, - { "tx_multicast_bytes", + { "tx_vport_multicast_bytes", VPORT_COUNTER_OFF(transmitted_eth_multicast.octets) }, - { "rx_broadcast_packets", + { "rx_vport_broadcast_packets", VPORT_COUNTER_OFF(received_eth_broadcast.packets) }, - { "rx_broadcast_bytes", + { "rx_vport_broadcast_bytes", VPORT_COUNTER_OFF(received_eth_broadcast.octets) }, - { "tx_broadcast_packets", + { "tx_vport_broadcast_packets", VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) }, - { "tx_broadcast_bytes", + { "tx_vport_broadcast_bytes", VPORT_COUNTER_OFF(transmitted_eth_broadcast.octets) }, };