net/mlx5: add physical port counters
[dpdk.git] / drivers / net / mlx5 / mlx5_stats.c
index c11ee57..4cb6136 100644 (file)
@@ -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);