]> asedeno.scripts.mit.edu Git - linux.git/commit
ice: fix changing of ring descriptor size (ethtool -G)
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 20 Sep 2018 00:23:11 +0000 (17:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 28 Sep 2018 18:16:36 +0000 (11:16 -0700)
commit3b6bf296c44f2b1233b7622c847a6ac5b1aeba0f
tree84d2163148dc5bd2de9620491eeb5ef46094235a
parent7d86cf38404744523d679671014087fbcbac5a36
ice: fix changing of ring descriptor size (ethtool -G)

rx_mini_pending was set to an incorrect value. This was causing EINVAL to
always be returned to 'ethtool -G'. The driver does not support mini or
jumbo rings so the respective settings should be zero.

Also, change the valid range of the number of descriptors in the rings to
make the code simpler and easier for users to understand (this removes the
valid settings of 8 and 16). Add a system log message indicating when the
number is rounded-up from what the user specifies with the 'ethtool -G'
command (i.e. when it is not a multiple of 32), and update the log message
when a user-provided value is out of range to also indicate the stride.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_ethtool.c