mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: Fix Airoha issue with token rate.
This commit is contained in:
parent
daf54622d8
commit
148aa95651
1 changed files with 5 additions and 5 deletions
|
|
@ -94,14 +94,14 @@ set_wan_egress_rate() {
|
|||
[ "$wanchannel" = "-1" ] && wanchannel=0
|
||||
|
||||
if [ "$rate" -gt 0 ]; then
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm config "$wanchannel" enable byte slow enable byte fast
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm config "$wanchannel" enable byte fast enable byte fast
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm value "$wanchannel" "$rate" "$rate"
|
||||
|
||||
if [ "$burstsize" -gt 1000 ]; then
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm bsize "$wanchannel" "$burstsize" "$burstsize"
|
||||
fi
|
||||
else
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm config "$wanchannel" disable byte slow disable byte fast
|
||||
/userfs/bin/qdmamgr_wan set general_tx_trtcm config "$wanchannel" disable byte fast disable byte fast
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -126,8 +126,8 @@ hw_init_all() {
|
|||
|
||||
for channel in $(seq 0 30); do
|
||||
tsid=$((OFFSET+channel))
|
||||
/userfs/bin/qdmamgr_lan set general_rx_trtcm config "$tsid" disable byte slow disable byte fast
|
||||
/userfs/bin/qdmamgr_wan set general_rx_trtcm config "$tsid" disable byte slow disable byte fast
|
||||
/userfs/bin/qdmamgr_lan set general_rx_trtcm config "$tsid" disable byte fast disable byte fast
|
||||
/userfs/bin/qdmamgr_wan set general_rx_trtcm config "$tsid" disable byte fast disable byte fast
|
||||
done
|
||||
|
||||
# set_wan_ingress_rate "0" - Not needed, done in policer.sh
|
||||
|
|
@ -249,7 +249,7 @@ set_lan_rate() {
|
|||
if [ "$rate" -eq 0 ]; then
|
||||
return
|
||||
else
|
||||
"${qdma_exe}" set general_rx_trtcm config "$tsid" enable byte slow enable byte fast
|
||||
"${qdma_exe}" set general_rx_trtcm config "$tsid" enable byte fast enable byte fast
|
||||
"${qdma_exe}" set general_rx_trtcm value "$tsid" "$rate" "$rate"
|
||||
|
||||
if [ "$burst_size" -gt 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue