rockchip64: set the main ethernet interface optimizations to Helios64's end0 too
This commit is contained in:
parent
9dba45a36f
commit
9fe078eaac
@ -213,6 +213,8 @@ prepare_board() {
|
||||
for i in $(awk -F":" "/xhci/ {print \$1}" < /proc/interrupts | sed 's/\ //g'); do
|
||||
echo 4 > /proc/irq/$i/smp_affinity
|
||||
done
|
||||
# Most boards get eth0 as main ethernet interface name, but Helios64 doesn't, see below
|
||||
_rockchip64_ethernet_interface_name=eth0
|
||||
case ${BOARD_NAME} in
|
||||
"Helios64")
|
||||
for i in $(awk -F":" "/xhci/ {print \$1}" < /proc/interrupts | sed 's/\ //g'); do
|
||||
@ -221,21 +223,23 @@ prepare_board() {
|
||||
for i in $(awk -F":" "/ahci/ {print \$1}" < /proc/interrupts | sed 's/\ //g'); do
|
||||
echo 30 > /proc/irq/$i/smp_affinity
|
||||
done
|
||||
_rockchip64_ethernet_interface_name=end0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# Wait (up to 5s) until eth0 brought up
|
||||
|
||||
# Wait (up to 5s) until eth0/end0 brought up
|
||||
for i in {1..5}; do
|
||||
grep -q "eth0" /proc/interrupts && break
|
||||
grep -q "$_rockchip64_ethernet_interface_name" /proc/interrupts && break
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo 8 > /proc/irq/$(awk -F":" "/eth0/ {print \$1}" < /proc/interrupts | sed 's/\ //g')/smp_affinity
|
||||
echo 7 > /sys/class/net/eth0/queues/rx-0/rps_cpus
|
||||
echo 8 > /proc/irq/$(awk -F":" "/${_rockchip64_ethernet_interface_name}/ {print \$1}" < /proc/interrupts | sed 's/\ //g')/smp_affinity
|
||||
echo 7 > /sys/class/net/${_rockchip64_ethernet_interface_name}/queues/rx-0/rps_cpus
|
||||
echo 32768 > /proc/sys/net/core/rps_sock_flow_entries
|
||||
echo 32768 > /sys/class/net/eth0/queues/rx-0/rps_flow_cnt
|
||||
echo 32768 > /sys/class/net/${_rockchip64_ethernet_interface_name}/queues/rx-0/rps_flow_cnt
|
||||
;;
|
||||
rk3399)
|
||||
for i in $(awk -F':' '/gpu/{print $1}' < /proc/interrupts | sed 's/\ //g'); do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user