net: axienet: reduce default RX interrupt threshold to 1
authorRobert Hancock <robert.hancock@calian.com>
Sat, 5 Mar 2022 02:24:42 +0000 (20:24 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2022 11:12:08 +0000 (11:12 +0000)
Now that NAPI has been implemented, the hardware interrupt mitigation
mechanism is not needed to avoid excessive interrupt load in most cases.
Reduce the default RX interrupt threshold to 1 to reduce introduced
latency. This can be increased with ethtool if desired if some applications
still want to reduce 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.h

index c771827587b39f8ec2631b416d5ccabfd1fe8a7b..6f0f13b4fb1ae6b52840148ed07296081bc3d923 100644 (file)
 /* Default TX/RX Threshold and waitbound values for SGDMA mode */
 #define XAXIDMA_DFT_TX_THRESHOLD       24
 #define XAXIDMA_DFT_TX_WAITBOUND       254
-#define XAXIDMA_DFT_RX_THRESHOLD       24
+#define XAXIDMA_DFT_RX_THRESHOLD       1
 #define XAXIDMA_DFT_RX_WAITBOUND       254
 
 #define XAXIDMA_BD_CTRL_TXSOF_MASK     0x08000000 /* First tx packet */