]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_stats.c
net/mlx5: fix count in xstats
[dpdk.git] / drivers / net / mlx5 / mlx5_stats.c
index 8e427e744263f3a59c7cb1cbb5dfebccb4c9bb3a..875dd1027048cd04239b0b95a2e8b990e6008e12 100644 (file)
@@ -325,7 +325,7 @@ mlx5_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *stats,
                        stats[i].value = (counters[i] - xstats_ctrl->base[i]);
                }
        }
-       return n;
+       return xstats_n;
 }
 
 /**