summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
diff options
context:
space:
mode:
authorMichal Maloszewski <michal.maloszewski@intel.com>2021-10-26 15:59:09 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-12-06 19:27:50 +0300
commit1a1aa356ddf3f16539f5962c01c5f702686dfc15 (patch)
treed0f7a6f4451645a82b9787d4ce882808ffd77ddb /drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
parent7e4dcc13965c57869684d57a1dc6dd7be589488c (diff)
downloadlinux-1a1aa356ddf3f16539f5962c01c5f702686dfc15.tar.xz
iavf: Fix reporting when setting descriptor count
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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c')
0 files changed, 0 insertions, 0 deletions