]> 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)
commitb0439db3f53a08f69a0612f26672b8cb1256af3e
tree0879d8463b068c4a65708445ffb4ff6a98d5c378
parentf4b0905d7d9704c3bda37e96cd01dc97312393c2
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: 9e06ca4362d1 ('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