mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: Rearrange queue and shaper function call execution order
This commit is contained in:
parent
619b267dac
commit
f27619294e
1 changed files with 5 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ configure_classify() {
|
|||
fcctl flush
|
||||
}
|
||||
|
||||
configure_queue() {
|
||||
pre_configure_queue() {
|
||||
# Delete queues
|
||||
rm -rf /tmp/qos/queue_stats
|
||||
|
||||
|
|
@ -862,7 +862,9 @@ configure_queue() {
|
|||
touch /tmp/qos/$intf/q_order
|
||||
touch /tmp/qos/$intf/q_precedence
|
||||
done
|
||||
}
|
||||
|
||||
configure_queue() {
|
||||
# Load UCI file
|
||||
config_load qos
|
||||
config_foreach handle_q_order queue
|
||||
|
|
@ -913,6 +915,7 @@ configure_qos() {
|
|||
#queue configuration is being done after shaper configuration,
|
||||
#If port shapingrate configuration on DISC device is called after queue configuration then
|
||||
#driver overwrites the queue shaping rate with default value of port shaping rate.
|
||||
pre_configure_queue
|
||||
configure_shaper
|
||||
configure_queue
|
||||
configure_policer
|
||||
|
|
@ -932,6 +935,7 @@ reload_qos() {
|
|||
elif [ "$service_name" == "shaper" ]; then
|
||||
configure_shaper
|
||||
elif [ "$service_name" == "queue" ]; then
|
||||
pre_configure_queue
|
||||
configure_queue
|
||||
elif [ "$service_name" == "classify" ]; then
|
||||
configure_classify
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue