net/mlx5: improve xstats of bonding port
authorXueming Li <xuemingl@nvidia.com>
Sun, 28 Mar 2021 13:48:14 +0000 (13:48 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:16:37 +0000 (09:16 +0200)
commit7ed15acdcd69334c730c70b202ba1a882968f7de
treecd2f7abf028d77c3d65d3ceec75560e77f2a70c3
parent1ce7d26d1afe7e113f96552391d836d834c4b025
net/mlx5: improve xstats of bonding port

In case of kernel bonding device, counter was read from first bonding PF
member.

This patch reads all member PFs and sums to get bond xstats.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/linux/mlx5_ethdev_os.c