aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGal Pressman <galp@mellanox.com>2016-04-24 22:51:48 +0300
committerDavid S. Miller <davem@davemloft.net>2016-04-26 15:58:01 -0400
commit8075cb72382bf854a3a95f74ea4f9d19ebe29fd5 (patch)
tree96ff5ea9ef505d86dec53e2f8c56c0bee9fc1a11
parentnet/mlx5e: Statistics handling refactoring (diff)
downloadlinux-dev-8075cb72382bf854a3a95f74ea4f9d19ebe29fd5.tar.xz
linux-dev-8075cb72382bf854a3a95f74ea4f9d19ebe29fd5.zip
net/mlx5e: Rename VPort counters
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 <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_stats.h35
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 116320d8fc42..4f3a08d7e8ed 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) },
};