Thierry Herbelot 25b73ba6f3 net/mlx5: cleanup allocation of ethtool stats
Simplify the computation for the needed size:
- exact size for the structure header,
- exact size for a number of 64-bit counters.

Fixes: a4193ae3bc4f ("net/mlx5: support extended statistics")
Cc: stable@dpdk.org

Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
2018-01-16 18:47:49 +01:00
..
2018-01-11 18:26:46 +01:00
2018-01-11 18:26:46 +01:00
2017-11-06 22:44:26 +01:00
2018-01-11 18:26:46 +01:00
2018-01-12 17:27:07 +01:00
2018-01-12 17:27:08 +01:00
2018-01-11 18:26:46 +01:00