qca-nss-drv: fix up affinity script

Each NSS irq has two interrupts, distribute them evenly.
This commit is contained in:
Qosmio 2024-01-26 19:20:29 -05:00
parent 9e669af42a
commit 757783ae22

View File

@ -19,8 +19,10 @@ START=70
enable_rps() {
set_affinity() {
irq=$(awk "/$1/{ print substr(\$1, 1, length(\$1)-1); exit }" /proc/interrupts)
awk "/$1/{ print substr(\$1, 1, length(\$1)-1) }" /proc/interrupts | while read irq
do
[ -n "$irq" ] && echo $2 > /proc/irq/$irq/smp_affinity
done
}
# assign 3 nss queues to each core