Skip to content

Commit

Permalink
txrx-tsn: Tuning NAPI Deferral to improve performance
Browse files Browse the repository at this point in the history
Changes:
- Tune the gro_flush_timeout to 20000ns

Signed-off-by: Goh Wei Sheng <wei.sheng.goh@intel.com>
  • Loading branch information
ws-intel committed Aug 22, 2023
1 parent dd0fe82 commit a0f5ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit a0f5ed0

Please sign in to comment.