Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
local device=${1}
local type=${2}
- assert isoneof type "" rx tx
+ isset type && assert isoneof type rx tx
local i=0
local device=${1}
local queue=${2}
- local path="${SYS_CLASS_NET}/${device}/queues/${queue}/rps_cpus"
+ local path="${SYS_CLASS_NET}/${device}/queues/${queue}"
+
+ case "${queue}" in
+ rx-*)
+ path="${path}/rps_cpus"
+ ;;
+ tx-*)
+ path="${path}/xps_cpus"
+ ;;
+ esac
assert [ -r "${path}" ]
__bitmap_to_processor_ids $(<${path})