]> Git Repo - linux.git/commit
ice: fix software generating extra interrupts
authorJesse Brandeburg <[email protected]>
Mon, 20 Sep 2021 19:30:14 +0000 (12:30 -0700)
committerTony Nguyen <[email protected]>
Tue, 19 Oct 2021 17:45:17 +0000 (10:45 -0700)
commit23be7075b31863da9cf3983aebcc8ff7537c06ac
tree239ccf6c47bf7c1df73ab43561e123f3ac249c20
parentd16a4f45f3a3afcb56910a7242cc621c071e80e4
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 <[email protected]>
Tested-by: Gurucharan G <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
drivers/net/ethernet/intel/ice/ice_hw_autogen.h
drivers/net/ethernet/intel/ice/ice_txrx.c
This page took 0.055546 seconds and 4 git commands to generate.