net/mlx5e: Allocate set of queue counters per netdev
[deliverable/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / en.h
index 879e6276c4736cb6f14b49db220e102c66636092..c4ddbe8501a7ed0d5fda8f3d5e9beb5749ed47cb 100644 (file)
@@ -236,6 +236,15 @@ struct mlx5e_pport_stats {
        __be64 RFC_2819_counters[NUM_RFC_2819_COUNTERS];
 };
 
+static const char qcounter_stats_strings[][ETH_GSTRING_LEN] = {
+       "rx_out_of_buffer",
+};
+
+struct mlx5e_qcounter_stats {
+       u32 rx_out_of_buffer;
+#define NUM_Q_COUNTERS 1
+};
+
 static const char rq_stats_strings[][ETH_GSTRING_LEN] = {
        "packets",
        "bytes",
@@ -293,6 +302,7 @@ struct mlx5e_sq_stats {
 struct mlx5e_stats {
        struct mlx5e_vport_stats   vport;
        struct mlx5e_pport_stats   pport;
+       struct mlx5e_qcounter_stats qcnt;
 };
 
 struct mlx5e_params {
@@ -575,6 +585,7 @@ struct mlx5e_priv {
        struct net_device         *netdev;
        struct mlx5e_stats         stats;
        struct mlx5e_tstamp        tstamp;
+       u16 q_counter;
 };
 
 #define MLX5E_NET_IP_ALIGN 2
This page took 0.027919 seconds and 5 git commands to generate.