ice: Report what the user set for coalesce [tx|rx]-usecs
authorBrett Creeley <brett.creeley@intel.com>
Fri, 2 Aug 2019 08:25:27 +0000 (01:25 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Sep 2019 23:11:10 +0000 (16:11 -0700)
commit567af267fa1d95d13b0fdfa1fdc18ec474220b88
tree5f044d6dd47ca9521e6ef65b316132d88fa4309e
parent8132e17dfb1683f1ef7ebf6fa8b61c1f48152660
ice: Report what the user set for coalesce [tx|rx]-usecs

Currently if the user sets an odd value for [tx|rx]-usecs we align the
value because the hardware only understands ITR values in multiples of
2. This seems misleading because we are essentially telling the user
that the ITR value is odd, when in fact we have changed it internally.
Fix this by reporting that setting odd ITR values is not allowed.

Also, while making changes to ice_set_rc_coalesce() I noticed a bit of
code/error duplication. Make the necessary changes to remove the
duplication.

Signed-off-by: Brett Creeley <brett.creeley@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_ethtool.c