]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20bbc9d736508a3f7d952c4443847a650a2d800f
tree5f044d6dd47ca9521e6ef65b316132d88fa4309e
parent9c7197eb4487828fee555d30f9bca6a833bca0f7
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