]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2022 11:12:08 +0000 (11:12 +0000)
commitff7714ea1bc6da1b82cbb1df7573bd82ab211c48
tree2e8813bf924c2f42dc5d9283e928956e44bf94c0
parent4975964a9443607bd43a941bdc254eb5104960ca
net: axienet: don't set IRQ timer when IRQ delay not used

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>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c