mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
qca-nss-drv: fix up affinity script
Each NSS irq has two interrupts, distribute them evenly.
This commit is contained in:
parent
9e669af42a
commit
757783ae22
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user