net/mlx5: support missing counter in extended statistics
authorShahaf Shuler <shahafs@mellanox.com>
Mon, 17 Sep 2018 09:46:34 +0000 (12:46 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:56:02 +0000 (18:56 +0200)
commit1a611fdaf6ec3d860d7b0f39cdd8b754ef51ebc3
tree541c78c0a208588ac3eabfd6fbef2a544fd4205e
parent3c156061b938822d45ed48534d3ffc3655b6207f
net/mlx5: support missing counter in extended statistics

The current code would fail if one of the counters DPDK counters was not
found on the device counters.

As representors and PF port has different counters the both cannot work
together.

Addressing this issue by making the counter init more flexible to
contain all the counter found and skipping the error.

Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_stats.c