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)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 18 Apr 2024 10:43:06 +0000 (12:43 +0200)
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 b9f0e692d5386f9df53df1815dbdb8b42cad451e..acfabf05e0e5a327752c44e427a0571ec1965ada 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)/project/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")"