mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
[Description]
Fix QDMA TX queue page error issue. If the TX queue page is changed before hnat_qos_shaper_ebl function, it may cause the function to set queue config on wrong TX queue page. In order to avoid this situation, we will check queue ID to switch to correct TX queue page. If without this patch, QDMA TX queue config will be wrong when the numbers of TX queue is greater than 16. [Release-log] N/A Change-Id: I42b013982885830355b4108d6bc49f2feac1ef08 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8203881
This commit is contained in:
parent
39a076ff16
commit
f189c50ef1
@ -2209,6 +2209,7 @@ void hnat_qos_shaper_ebl(u32 id, u32 enable)
|
||||
struct mtk_hnat *h = hnat_priv;
|
||||
u32 cfg;
|
||||
|
||||
cr_set_field(h->fe_base + QDMA_PAGE, QTX_CFG_PAGE, (id / NUM_OF_Q_PER_PAGE));
|
||||
if (enable) {
|
||||
cfg = QTX_SCH_MIN_RATE_EN | QTX_SCH_MAX_RATE_EN;
|
||||
cfg |= (1 << QTX_SCH_MIN_RATE_MAN_OFFSET) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user