]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Prevent u8 wrapping of ITR value to something less than 10us
authorAlexander Duyck <alexander.h.duyck@linux.intel.com>
Wed, 4 Sep 2019 15:07:11 +0000 (08:07 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Sep 2019 16:39:35 +0000 (09:39 -0700)
commit28466d9618518d2d5df3810143dc3678bddde9bd
tree4961261dba62bfed613f082afb01d9f9a524e8d9
parenta7ce8a8bf769b38521dcd672751a8a747aaa18e0
ixgbe: Prevent u8 wrapping of ITR value to something less than 10us

There were a couple cases where the ITR value generated via the adaptive
ITR scheme could exceed 126. This resulted in the value becoming either 0
or something less than 10. Switching back and forth between a value less
than 10 and a value greater than 10 can cause issues as certain hardware
features such as RSC to not function well when the ITR value has dropped
that low.

CC: stable@vger.kernel.org
Fixes: 7e7371d006e5 ("ixgbe: Update adaptive ITR algorithm")
Reported-by: Gregg Leventhal <gleventhal@janestreet.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c