From: Shahaf Shuler Date: Wed, 29 Nov 2017 11:29:08 +0000 (+0200) Subject: net/mlx5: add physical port counters X-Git-Tag: spdx-start~620 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0c62250ba6ea9ac48a777d70157d517c792d876b;p=dpdk.git net/mlx5: add physical port counters Extend the PMD extended statistics with more counters on the physical port. Signed-off-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c index c11ee57f07..4cb6136fc4 100644 --- a/drivers/net/mlx5/mlx5_stats.c +++ b/drivers/net/mlx5/mlx5_stats.c @@ -122,6 +122,22 @@ static const struct mlx5_counter_ctrl mlx5_counters_init[] = { .dpdk_name = "rx_out_of_buffer", .ctr_name = "out_of_buffer", }, + { + .dpdk_name = "tx_packets_phy", + .ctr_name = "tx_packets_phy", + }, + { + .dpdk_name = "rx_packets_phy", + .ctr_name = "rx_packets_phy", + }, + { + .dpdk_name = "tx_bytes_phy", + .ctr_name = "tx_bytes_phy", + }, + { + .dpdk_name = "rx_bytes_phy", + .ctr_name = "rx_bytes_phy", + }, }; static const unsigned int xstats_n = RTE_DIM(mlx5_counters_init);