]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix ordering of stats in stats buffer.
authorManish Chopra <manish.chopra@qlogic.com>
Mon, 22 Sep 2014 09:51:53 +0000 (05:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 19:11:31 +0000 (15:11 -0400)
commit8d9da999701fe2282be72fbf44c25bd83e954b57
treeec7c7c14b734ac1657501ea6b07cbe0374ca54f4
parenta0c378aacd95d5f36c23c24ea18ea79412dcacb7
qlcnic: Fix ordering of stats in stats buffer.

o When TX queues are not allocated, driver does not fill TX queues stats in the buffer.
  However, it is also not advancing data pointer by TX queue stats length, which would
  misplace all successive stats data in the buffer and will result in mismatch between
  stats strings and it's values.

o Fix this by advancing data pointer by TX queue stats length when
  queues are not allocated.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c