From a0f5ed07f8d1e9c0d55f8a475638e1f8791c162a Mon Sep 17 00:00:00 2001 From: "Goh, Wei Sheng" Date: Thu, 17 Aug 2023 16:49:34 +0800 Subject: [PATCH] txrx-tsn: Tuning NAPI Deferral to improve performance Changes: - Tune the gro_flush_timeout to 20000ns Signed-off-by: Goh Wei Sheng --- shell/helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/helpers.sh b/shell/helpers.sh index 6ab7b6c..9544880 100644 --- a/shell/helpers.sh +++ b/shell/helpers.sh @@ -197,7 +197,7 @@ napi_switch_on(){ if [[ $NAPI_DEFERRAL_NEEDED == 1 ]]; then # Workaround for XDP latency : activate napi busy polling echo "[Kernel_${KERNEL_VER}_XDP] Activate napi busy polling." - echo 10000 > /sys/class/net/$IFACE/gro_flush_timeout + echo 20000 > /sys/class/net/$IFACE/gro_flush_timeout echo 100 > /sys/class/net/$IFACE/napi_defer_hard_irqs else echo "[Kernel_${KERNEL_VER}_XDP] Napi polling is not needed."