summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2017-11-29 13:29:08 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commit0c62250ba6ea9ac48a777d70157d517c792d876b (patch)
tree8c79b7d723188ff68f31aecb082a4efac65e6b55 /drivers/net/mlx5/mlx5_stats.c
parentabdb903faccb684f5c981ef4d93d5f89ae75b854 (diff)
downloaddpdk-0c62250ba6ea9ac48a777d70157d517c792d876b.zip
dpdk-0c62250ba6ea9ac48a777d70157d517c792d876b.tar.gz
dpdk-0c62250ba6ea9ac48a777d70157d517c792d876b.tar.xz
net/mlx5: add physical port counters
Extend the PMD extended statistics with more counters on the physical port. Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
-rw-r--r--drivers/net/mlx5/mlx5_stats.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
index c11ee57..4cb6136 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);