Commit 3126dcb7 authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: adjust ITR max and min values

Set the ITR max and min values to match the hardware max value
and the recommended min value.  These values are shifted right
one bit because the register counts in 2 usec units, so leave
a comment to explain.

Change-ID: I289c27955cf6c566a6d21b95c3110b88cbb15dad
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 8ee75a8e
...@@ -29,9 +29,8 @@ ...@@ -29,9 +29,8 @@
/* Interrupt Throttling and Rate Limiting (storm control) Goodies */ /* Interrupt Throttling and Rate Limiting (storm control) Goodies */
#define I40E_MAX_ITR 0x07FF #define I40E_MAX_ITR 0x0FF0 /* reg uses 2 usec resolution */
#define I40E_MIN_ITR 0x0001 #define I40E_MIN_ITR 0x0004 /* reg uses 2 usec resolution */
#define I40E_ITR_USEC_RESOLUTION 2
#define I40E_MAX_IRATE 0x03F #define I40E_MAX_IRATE 0x03F
#define I40E_MIN_IRATE 0x001 #define I40E_MIN_IRATE 0x001
#define I40E_IRATE_USEC_RESOLUTION 4 #define I40E_IRATE_USEC_RESOLUTION 4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment