[openwrt/openwrt] netifd: packet-steering: silence error on applying queue mask

LEDE Commits lede-commits at lists.infradead.org
Thu Apr 18 03:43:48 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/afb5fdd79a00a1737fb64d9e2420ffdeebff392f

commit afb5fdd79a00a1737fb64d9e2420ffdeebff392f
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Apr 18 12:40:18 2024 +0200

    netifd: packet-steering: silence error on applying queue mask
    
    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 at gmail.com>
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/network/config/netifd/Makefile                                  | 2 +-
 .../network/config/netifd/files/usr/libexec/network/packet-steering.sh  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile
index b9f0e692d5..acfabf05e0 100644
--- a/package/network/config/netifd/Makefile
+++ b/package/network/config/netifd/Makefile
@@ -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
diff --git a/package/network/config/netifd/files/usr/libexec/network/packet-steering.sh b/package/network/config/netifd/files/usr/libexec/network/packet-steering.sh
index 799c080805..51b9284449 100755
--- a/package/network/config/netifd/files/usr/libexec/network/packet-steering.sh
+++ b/package/network/config/netifd/files/usr/libexec/network/packet-steering.sh
@@ -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. at globals[0].packet_steering")"




More information about the lede-commits mailing list