From e590fc7894f01a12238442a657b9b9f6090dc7cf Mon Sep 17 00:00:00 2001 From: Markus Gothe Date: Mon, 15 Sep 2025 11:13:08 +0200 Subject: [PATCH] qosmngr: airoha: flush HW NAT to directly apply changes. --- qosmngr/files/airoha/lib/qos/qos.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qosmngr/files/airoha/lib/qos/qos.sh b/qosmngr/files/airoha/lib/qos/qos.sh index 4549799e8..04e18d2ee 100755 --- a/qosmngr/files/airoha/lib/qos/qos.sh +++ b/qosmngr/files/airoha/lib/qos/qos.sh @@ -22,6 +22,10 @@ ip_rule_get_converted_tos() { echo $con_tos } +flush_hw_nat() { + hw_nat -! > /dev/null 2>&1 +} + configure_qos() { # queue configuration is being done after shaper configuration, # If port shapingrate configuration on DISC device is called after queue configuration then @@ -33,8 +37,9 @@ configure_qos() { configure_policer configure_classify if [ -f "/tmp/qos/classify.ebtables" ]; then - sh /tmp/qos/classify.ebtables + sh /tmp/qos/classify.ebtables fi + flush_hw_nat } reload_qos() { @@ -65,6 +70,7 @@ reload_qos() { ;; esac hw_commit_all + flush_hw_nat } reload_qos_service() {