mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: airoha: flush HW NAT to directly apply changes.
This commit is contained in:
parent
785f2e9db2
commit
e590fc7894
1 changed files with 7 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue