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)
commitcba5957d7e08fffd6237e4bd8f42adad057ab8bb
treecea39eaad0ca93a8fb855e2a6f2c4c0ba7eafed6
parent63bb4e1ebd9876d250eea24d27a2caf3e0e3302c
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: fcea6f3da546 (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