net/mlx5: fix count in xstats
authorDavid Marchand <david.marchand@6wind.com>
Sun, 20 May 2018 08:13:58 +0000 (10:13 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commit5fd4d049692b2fde8bf49c7461b18180a8fd2545
tree46023f8f858007225664b8d2bb42069b83e2c80e
parent954b68224febbdd41de1f772de649757f8edafea
net/mlx5: fix count in xstats

With the commit af4f09f28294 ("net/mlx5: prefix all functions with mlx5"),
mlx5_xstats_get() is not compliant any longer with the api.
It always returns the caller max entries count while it should return how
many entries it wrote/wanted to write.

Fixes: af4f09f28294 ("net/mlx5: prefix all functions with mlx5")

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_stats.c