Commit 635e766e authored by Robert Hancock's avatar Robert Hancock Committed by Greg Kroah-Hartman
Browse files

net: axienet: don't set IRQ timer when IRQ delay not used



[ Upstream commit 0155ae6e ]

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: default avatarRobert Hancock <robert.hancock@calian.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 5a6caa2c ("net: xilinx: axienet: Fix packet counting")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 50a2ed16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment