netifd: packet-steering: silence error on applying queue mask
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 18 Apr 2024 10:40:18 +0000 (12:40 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 19 Apr 2024 21:19:34 +0000 (17:19 -0400)
Some queues can't be tweaked and return -ENOENT if it's not multiqueue.

Silence any error from echo to produce a more clean bootlog.

Fixes: #12095
Suggested-by: Andris PE <neandris@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/network/config/netifd/Makefile
package/network/config/netifd/files/usr/libexec/network/packet-steering.sh

index 1c9bbd42ea7a4cf39640a81aeda3fc7b90cce26f..84f896b4eba4cbda1292c30ec13711e17c22e1d9 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netifd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/netifd.git
index 799c0808053f8d11d61ceefbdea59552ca6d8ba9..51b9284449764f41698d515f48ff8270b8913cdb 100755 (executable)
@@ -29,7 +29,7 @@ set_hex_val() {
        local val="$2"
        val="$(printf %x "$val")"
        [ -n "$DEBUG" ] && echo "$file = $val"
-       echo "$val" > "$file"
+       echo "$val" > "$file" 2>/dev/null
 }
 
 packet_steering="$(uci get "network.@globals[0].packet_steering")"