net: cadence: macb: Enable software IRQ coalescing by default
authorSean Anderson <sean.anderson@linux.dev>
Tue, 3 Sep 2024 18:49:12 +0000 (14:49 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Sep 2024 00:10:02 +0000 (17:10 -0700)
commitd57f7b45945ac0517ff8ea50655f00db6e8d637c
tree06bf821d92cfb451e43a67114214190c6918c49f
parent569bf6d481b0b823c3c9c3b8be77908fd7caf66b
net: cadence: macb: Enable software IRQ coalescing by default

This NIC doesn't have hardware IRQ coalescing. Under high load,
interrupts can adversely affect performance. To mitigate this, enable
software IRQ coalescing by default. On my system this increases receive
throughput with iperf3 from 853 MBit/sec to 934 MBit/s, decreases
interrupts from 69489/sec to 2016/sec, and decreases CPU utilization
from 27% (4x Cortex-A53) to 14%. Latency is not affected (as far as I
can tell).

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240903184912.4151926-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c