]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix off-by-one in ethtool statistics display
authorEran Ben Elisha <eranbe@mellanox.com>
Wed, 18 Mar 2015 14:51:36 +0000 (16:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 19:17:11 +0000 (15:17 -0400)
commit46c6fb66b076a56d947a78b7fdbd662743a28cec
treea56e16779f0756ea36e925e6706c29e94d581163
parentc26e81509651655e91fe430122ab06d5dca7eafa
net/mlx4_en: Fix off-by-one in ethtool statistics display

NUM_PORT_STATS was 9 instead of 10, which caused off-by-one bug when
displaying the statistics starting from tx_chksum_offload in ethtool.

Fixes: 659509af05cf ('net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@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_en.h