]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: axienet: don't set IRQ timer when IRQ delay not used
authorRobert Hancock <robert.hancock@calian.com>
Sat, 5 Mar 2022 02:24:40 +0000 (20:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:07 +0000 (15:11 +0200)
commit635e766e602fa50e6cdca121e3526d717c2e1efa
treea814e264cb4e12b9ab77aeebc6cf9e2e5ff6be55
parent50a2ed164f59e0190bd9fb743fd746106d295eb9
net: axienet: don't set IRQ timer when IRQ delay not used

[ Upstream commit 0155ae6eb84dbeecb7199a2fd9dee72e046ac875 ]

When the RX or TX coalesce count is set to 1, there's no point in
setting the delay timer value since an interrupt will already be raised
on every packet, and the delay interrupt just causes extra pointless
interrupts.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 5a6caa2cfabb ("net: xilinx: axienet: Fix packet counting")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c