mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mediatek: add usb/wwan ext devices rps settings
This commit is contained in:
parent
6e8fc28275
commit
42fbe2ced3
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ "$ACTION" = add ] || exit
|
||||||
|
|
||||||
|
NPROCS="$(grep -c "^processor.*:" /proc/cpuinfo)"
|
||||||
|
[ "$NPROCS" -gt 1 ] || exit
|
||||||
|
|
||||||
|
IFNAME_PREFIX="${INTERFACE%%[0-9]*}"
|
||||||
|
|
||||||
|
if [ "${IFNAME_PREFIX}" = "usb" ] || [ "${IFNAME_PREFIX}" = "wwan" ]; then
|
||||||
|
# set usb/wwan rps to cpu0
|
||||||
|
echo 1 > /sys/class/net/${INTERFACE}/queues/rx-0/rps_cpus
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user