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
}
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
@ -35,6 +39,7 @@ configure_qos() {
if [ -f "/tmp/qos/classify.ebtables" ]; then
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() {