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
86fb3db75b
commit
c54fd95889
1 changed files with 7 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue