diff --git a/qosmngr/files/lib/qos/broadcom.sh b/qosmngr/files/lib/qos/broadcom.sh index 02b052136..ef31fb4e0 100755 --- a/qosmngr/files/lib/qos/broadcom.sh +++ b/qosmngr/files/lib/qos/broadcom.sh @@ -851,11 +851,16 @@ pre_configure_queue() { mkdir -p /tmp/qos/queue_stats/$intf touch /tmp/qos/queue_stats/$intf/q_idx echo 0 > /tmp/qos/queue_stats/$intf/q_idx + +# tm initialization pushing ahead of delcfg as +# porttminit bydefault configures all queue as SP configuration. +# that was causing WRR queue configuration failure. + tmctl porttminit --devtype 0 --if $intf --flag 0 --numqueues 8 + i=0 for i in 0 1 2 3 4 5 6 7; do tmctl delqcfg --devtype 0 --if $intf --qid $i &>/dev/null done - tmctl porttminit --devtype 0 --if $intf --flag 0 --numqueues 8 mkdir -p /tmp/qos/$intf touch /tmp/qos/$intf/q_order