Update 40-net-smp-affinity

This commit is contained in:
骷髅头 2023-01-16 23:53:04 +08:00 committed by GitHub
parent ad2e3fb802
commit 7fb685947f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,8 @@ embedfire,lubancat1n|\
embedfire,lubancat2)
set_interface_core 2 "eth0"
set_interface_core 3 "eth1"
/usr/sbin/ethtool -K eth0 tso on sg on tx on
/usr/sbin/ethtool -K eth1 tso on sg on tx on
;;
friendlyarm,nanopi-r5c)
set_interface_core 1 "eth0-0"
@ -110,5 +112,9 @@ embedfire,lubancat2n)
echo e > /sys/class/net/eth3/queues/rx-0/rps_cpus
sysctl net.core.rps_sock_flow_entries=32768
echo 32768 > /sys/class/net/eth3/queues/rx-0/rps_flow_cnt
/usr/sbin/ethtool -K eth0 tso on sg on tx on
/usr/sbin/ethtool -K eth1 tso on sg on tx on
/usr/sbin/ethtool -K eth2 tso on sg on tx on
/usr/sbin/ethtool -K eth3 tso on sg on tx on
;;
esac