qosmngr: airoha: flush HW NAT to directly apply changes.

This commit is contained in:
Markus Gothe 2025-09-15 11:13:08 +02:00
parent 785f2e9db2
commit e590fc7894

View file

@ -22,6 +22,10 @@ ip_rule_get_converted_tos() {
echo $con_tos echo $con_tos
} }
flush_hw_nat() {
hw_nat -! > /dev/null 2>&1
}
configure_qos() { configure_qos() {
# queue configuration is being done after shaper configuration, # queue configuration is being done after shaper configuration,
# If port shapingrate configuration on DISC device is called after queue configuration then # If port shapingrate configuration on DISC device is called after queue configuration then
@ -33,8 +37,9 @@ configure_qos() {
configure_policer configure_policer
configure_classify configure_classify
if [ -f "/tmp/qos/classify.ebtables" ]; then if [ -f "/tmp/qos/classify.ebtables" ]; then
sh /tmp/qos/classify.ebtables sh /tmp/qos/classify.ebtables
fi fi
flush_hw_nat
} }
reload_qos() { reload_qos() {
@ -65,6 +70,7 @@ reload_qos() {
;; ;;
esac esac
hw_commit_all hw_commit_all
flush_hw_nat
} }
reload_qos_service() { reload_qos_service() {