]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_stats.c
net/virtio: fix memory leak when reinitializing device
[dpdk.git] / drivers / net / mlx5 / mlx5_stats.c
index c11ee57f0701d73e40e72539c018dd147cc85c2d..36234b870d1b22d8091dec2f08c83c3532d897ba 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/sockios.h>
 #include <linux/ethtool.h>
 
-#include <rte_ethdev.h>
+#include <rte_ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 
@@ -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);