]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: initialize ITRN registers with correct values
authorNicholas Nunley <nicholas.d.nunley@intel.com>
Tue, 5 Nov 2019 12:22:14 +0000 (04:22 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 9 Nov 2019 00:10:51 +0000 (16:10 -0800)
commit9c6f222fd4e8863d4cc0e915d8c6363354043e66
tree1bf1e365c902984b774c9024a483ef85e5cea3b5
parentce26f3b35f3309a097b81ff0de1b9267520cfe4b
iavf: initialize ITRN registers with correct values

Since commit 62ecce5b1075 ("i40e/i40evf: Use usec value instead of reg
value for ITR defines") the driver tracks the interrupt throttling
intervals in single usec units, although the actual ITRN registers are
programmed in 2 usec units. Most register programming flows in the driver
correctly handle the conversion, although it is currently not applied when
the registers are initialized to their default values. Most of the time
this doesn't present a problem since the default values are usually
immediately overwritten through the standard adaptive throttling mechanism,
or updated manually by the user, but if adaptive throttling is disabled and
the interval values are left alone then the incorrect value will persist.

Since the intended default interval of 50 usecs (vs. 100 usecs as
programmed) performs better for most traffic workloads, this can lead to
performance regressions.

This patch adds the correct conversion when writing the initial values to
the ITRN registers.

Signed-off-by: Nicholas Nunley <nicholas.d.nunley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c