]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Bug fixes in ethtool code
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Mon, 2 Apr 2018 16:26:06 +0000 (09:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 Apr 2018 14:00:09 +0000 (07:00 -0700)
commitc2d940dff2a3babc4186b716c6eb622b1701c799
treecea39eaad0ca93a8fb855e2a6f2c4c0ba7eafed6
parentf1a41e45f04d406fc0619eb9b6506ff1e8f2a958
ice: Bug fixes in ethtool code

1) Return correct size from ice_get_regs_len.
2) Fix incorrect use of ARRAY_SIZE in ice_get_regs.

Fixes: 7c3e0ebc363c (ice: Add stats and ethtool support)
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c