]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ionic: Fix dim work handling in split interrupt mode
authorBrett Creeley <brett.creeley@amd.com>
Mon, 4 Dec 2023 19:22:34 +0000 (11:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Dec 2023 04:20:20 +0000 (20:20 -0800)
commit4115ba677c35f694b62298e55f0e04ce84eed469
tree1de7529fd94017079c347b5e6e01595d4fdc0ba7
parent0ceb3860a67652f9d36dfdecfcd2cb3eb2f4537d
ionic: Fix dim work handling in split interrupt mode

Currently ionic_dim_work() is incorrect when in
split interrupt mode. This is because the interrupt
rate is only being changed for the Rx side even for
dim running on Tx. Fix this by using the qcq from
the container_of macro. Also, introduce some local
variables for a bit of cleanup.

Fixes: a6ff85e0a2d9 ("ionic: remove intr coalesce update from napi")
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20231204192234.21017-3-shannon.nelson@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c