]> 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)
commited80ec4c179d1f44cc1b36c7a102353ae6103793
tree0879d8463b068c4a65708445ffb4ff6a98d5c378
parent9ceec359e4ebdbbfd35375203c5bd06d602225f7
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: cf678570d5a1 ('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