]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix number of PFC counters reported to ethtool
authorGal Pressman <galp@mellanox.com>
Mon, 27 Jun 2016 09:08:37 +0000 (12:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 08:28:46 +0000 (04:28 -0400)
commit748ed5f9fcd331f5373e8a29c36e39ebfd72aa0d
tree0879d8463b068c4a65708445ffb4ff6a98d5c378
parentae26fdda58b9e662105a3393d7e47eb8d4b1582f
net/mlx5e: Fix number of PFC counters reported to ethtool

Number of PFC counters used to count only number of priorities with PFC
enabled, but each priority has more than one counter, hence the need to
multiply it by the number of PFC counters per priority.

Fixes: 0092fc47edce ('net/mlx5e: Add per priority group to PPort counters')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c