summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_tc_lib.c
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2021-09-20 12:30:14 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-10-19 10:45:17 -0700
commit23be7075b31863da9cf3983aebcc8ff7537c06ac (patch)
tree239ccf6c47bf7c1df73ab43561e123f3ac249c20 /drivers/net/ethernet/intel/ice/ice_tc_lib.c
parentd16a4f45f3a3afcb56910a7242cc621c071e80e4 (diff)
ice: fix software generating extra interrupts
The driver tried to work around missing completion events that occurred while interrupts are disabled, by triggering a software interrupt whenever we exit polling (but we had to have polled at least once). This was causing a *lot* of extra interrupts for some workloads like NVMe over TCP, which resulted in regressions in performance. It was also visible when polling didn't prevent interrupts when busy_poll was enabled. Fix the extra interrupts by utilizing our previously unused 3rd ITR (interrupt throttle) index and set it to 20K interrupts per second, and then trigger a software interrupt within that rate limit. While here, slightly refactor the code to avoid an overwrite of a local variable in the case of wb_en = true. Fixes: b7306b42beaf ("ice: manage interrupts during poll exit") Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_tc_lib.c')
0 files changed, 0 insertions, 0 deletions