Skip to content

Commit

Permalink
script: Remove 5 second interval in napi switch on/off
Browse files Browse the repository at this point in the history
Changes List:
- Remove 5 second interval in napi switch on/off to avoid
  extra latency.

Signed-off-by: Goh, Wei Sheng <wei.sheng.goh@intel.com>
  • Loading branch information
ws-intel committed Feb 21, 2023
1 parent 21180fc commit 1e32682
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions json/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ napi_switch_on(){
else
echo "[Kernel_${KERNEL_VER}_XDP] Napi polling is not needed."
fi

sleep 5
}

# Switch to off napi deferral feature
Expand All @@ -252,8 +250,6 @@ napi_switch_off(){
echo "[Kernel_${KERNEL_VER}_XDP] De-activate napi busy polling for inf:$IFACE."
echo 0 > /sys/class/net/$IFACE/gro_flush_timeout
echo 0 > /sys/class/net/$IFACE/napi_defer_hard_irqs

sleep 5
}

###############################################################################
Expand Down
4 changes: 0 additions & 4 deletions shell/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ napi_switch_on(){
else
echo "[Kernel_${KERNEL_VER}_XDP] Napi polling is not needed."
fi

sleep 5
}

# Switch to off napi deferral feature
Expand All @@ -219,8 +217,6 @@ napi_switch_off(){
echo "[Kernel_${KERNEL_VER}_XDP] De-activate napi busy polling."
echo 0 > /sys/class/net/$IFACE/gro_flush_timeout
echo 0 > /sys/class/net/$IFACE/napi_defer_hard_irqs

sleep 5
}

###############################################################################
Expand Down
3 changes: 2 additions & 1 deletion shell/vs1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ else
$DIR/clock-setup.sh $IFACE
sleep 20
napi_switch_on $IFACE
sleep 5
fi
# This is targeting for i225/i226
else
Expand All @@ -151,7 +152,7 @@ else
ethtool -C $IFACE rx-usecs 0
sleep 2
napi_switch_on $IFACE
sleep 33
sleep 38
fi
fi

Expand Down

0 comments on commit 1e32682

Please sign in to comment.