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)
commit0155ae6eb84dbeecb7199a2fd9dee72e046ac875
tree2e8813bf924c2f42dc5d9283e928956e44bf94c0
parent84b9ccc0749a7036bcaf707f02273dcbd4756fbf
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