[][kernel][common][app][Add multiple QDMA TX queue scheduler support]
[Description]
Add multiple QDMA TX queue scheduler support.
If without this patch, mtkhant only configure two schedulers.
[Release-log]
N/A
Change-Id: Ib6173163a2a6e06305eb64b3948983995ebda0b8
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8203880
diff --git a/feed/mtkhnat_util/files/mtkhnat.config b/feed/mtkhnat_util/files/mtkhnat.config
index f252a98..b5a29e4 100755
--- a/feed/mtkhnat_util/files/mtkhnat.config
+++ b/feed/mtkhnat_util/files/mtkhnat.config
@@ -1,23 +1,29 @@
####################################################################
# hqos: 1:ON, 0:OFF #
# txq_num: 16:default (only supports 64 queues for MT7622) #
+# sch_num: 2 or 4 (only supports 2 schedulers for MT7622) #
# scheduling: wrr: weighted round-robin, sp: strict priority #
# sch0_bw: sch0 bandwidth (unit:Kbps) #
# sch1_bw: sch1 bandwidth (unit:Kbps) #
+# sch2_bw: sch2 bandwidth (unit:Kbps) #
+# sch3_bw: sch3 bandwidth (unit:Kbps) #
####################################################################
config global global
option enable 1
option hqos 0
option txq_num 16
+ option sch_num 2
option scheduling 'wrr'
option sch0_bw 1000000
option sch1_bw 1000000
+ option sch2_bw 1000000
+ option sch3_bw 1000000
####################################################################
# id: queue id #
# minrate: percentage of min rate limit #
# maxrate: percentage of max rate limit #
-# weight: weight for queue schedule #
+# weight: weight for queue schedule (only for wrr) #
# resv: buffer reserved for HW/SW path #
####################################################################
config queue