summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMichal Maloszewski <michal.maloszewski@intel.com>2021-10-26 12:59:09 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-14 14:49:00 +0100
commitab1be91cf1ec6572eb8a9c093fd739625f1e3ed9 (patch)
tree7662b3d7cbe28ad1152fc8998d815064839461dc /drivers/infiniband
parentc21bb711d0fb98927e2fb5508b6bfb488e6e2bd0 (diff)
downloadlinux-ab1be91cf1ec6572eb8a9c093fd739625f1e3ed9.tar.gz
linux-ab1be91cf1ec6572eb8a9c093fd739625f1e3ed9.tar.bz2
linux-ab1be91cf1ec6572eb8a9c093fd739625f1e3ed9.zip
iavf: Fix reporting when setting descriptor count
commit 1a1aa356ddf3f16539f5962c01c5f702686dfc15 upstream. iavf_set_ringparams doesn't communicate to the user that 1. The user requested descriptor count is out of range. Instead it just quietly sets descriptors to the "clamped" value and calls it done. This makes it look an invalid value was successfully set as the descriptor count when this isn't actually true. 2. The user provided descriptor count needs to be inflated for alignment reasons. This behavior is confusing. The ice driver has already addressed this by rejecting invalid values for descriptor count and messaging for alignment adjustments. Do the same thing here by adding the error and info messages. Fixes: fbb7ddfef253 ("i40evf: core ethtool functionality") Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Signed-off-by: Michal Maloszewski <michal.maloszewski@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions