]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix off-by-four in ethtool
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 23 Jun 2015 14:14:12 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 07:42:32 +0000 (00:42 -0700)
commit2d84434696b2974117c81cbe2d85960f372660ad
tree579248e75e56b617ca8995b7cd3084170a1ee346
parent15c9f379f3bb71c61a0e40030b023632f9c51a9d
net/mlx4_en: Fix off-by-four in ethtool

NUM_ALL_STATS was not updated with the new four entries, instead
NUM_FLOW_STATS was updated, fix it. that caused off-by-four for all
counters below pf_*_*.

Fixes: 62f5a3630a64 ('net/mlx4_en: Show PF own statistics via ethtool')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h