mirror of
https://github.com/immortalwrt/immortalwrt
synced 2025-01-08 12:08:13 +08:00
autocore: maximize ring buffer size for Intel IGC ethernet
Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com> Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
3f3094e87c
commit
680e4752c5
@ -22,7 +22,7 @@ start() {
|
|||||||
uci set network.@globals[0].packet_steering="1"
|
uci set network.@globals[0].packet_steering="1"
|
||||||
uci commit network
|
uci commit network
|
||||||
|
|
||||||
for i in $(ip address | awk -F ': ' '/eth[0-9]+/ {print $2}' | xargs)
|
for i in $(ip address | awk -F ': ' '/eth[0-9]+/ {print $2}' | grep -v '@' | xargs)
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
ethtool -K "$i" rx-checksum on
|
ethtool -K "$i" rx-checksum on
|
||||||
@ -34,6 +34,11 @@ start() {
|
|||||||
ethtool -K "$i" gso on
|
ethtool -K "$i" gso on
|
||||||
ethtool -K "$i" tso on
|
ethtool -K "$i" tso on
|
||||||
ethtool -K "$i" ufo on
|
ethtool -K "$i" ufo on
|
||||||
|
|
||||||
|
if ethtool -i "$i" | grep -q "driver: igc"; then
|
||||||
|
ethtool -G "$i" rx "$(ethtool -g "$i" | awk '/^RX:/ {print $2; exit}')"
|
||||||
|
ethtool -G "$i" tx "$(ethtool -g "$i" | awk '/^TX:/ {print $2; exit}')"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
} >"/dev/null" 2>&1
|
} >"/dev/null" 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user