]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Calculate ITR increment based on direct calculation
authorBrett Creeley <brett.creeley@intel.com>
Thu, 28 Feb 2019 23:25:47 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2019 15:38:48 +0000 (08:38 -0700)
commit1a567e2cd5ff5d155468a43687fec247f5609de5
treebaabd204980889bce5a760d5f65a29234364e80d
parent9fe99a964ea3d742c474c91317ac1c138e921fa7
ice: Calculate ITR increment based on direct calculation

Currently when calculating how much to increment ITR by inside of
ice_update_itr() we do some estimations and intermediate
calculations. Instead of doing estimations, just do the
calculation directly. This allows for a more accurate value and it
makes it easier for the next person to understand and update.

Also, remove the dividing the ITR value by 2 when latency
driven because the ITR values are already so low for 100Gbps
speed. This should help get to the desired ITR value faster.

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