[][Kernel][mt7986][hnat][Add PPPQ configs for AX7800/AX8400]
[Description]
Add configurations to allow WLAN -> MT7531 2.5G(P5) traffic
being scheduled in PPPQ DRAM queue.
If without this patch, AX7800/AX8400 WLAN -> MT7531 2.5G(P5)
traffic might encounter performance bound issue.
[Release-log]
N/A
Change-Id: I3ff03c8b3caa29a2eac62a11fd1822c53c8c3f31
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6394701
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
index 1540bf8..6b937d5 100644
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
@@ -1571,7 +1571,8 @@
if (IS_HQOS_MODE || skb->mark >= MAX_PPPQ_PORT_NUM)
qid = skb->mark & (MTK_QDMA_TX_MASK);
- else if (IS_PPPQ_MODE && (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev)))
+ else if (IS_PPPQ_MODE && (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev) ||
+ (FROM_WED(skb) && IS_DSA_LAN(dev))))
qid = port_id & MTK_QDMA_TX_MASK;
else
qid = 0;
@@ -1607,7 +1608,8 @@
else
entry.ipv4_hnapt.iblk2.fqos =
(!IS_PPPQ_MODE || (IS_PPPQ_MODE &&
- (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev))));
+ (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev) ||
+ (FROM_WED(skb) && IS_DSA_LAN(dev)))));
} else {
entry.ipv4_hnapt.iblk2.fqos = 0;
}
@@ -1641,7 +1643,8 @@
else
entry.ipv6_5t_route.iblk2.fqos =
(!IS_PPPQ_MODE || (IS_PPPQ_MODE &&
- (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev))));
+ (IS_DSA_1G_LAN(dev) || IS_DSA_WAN(dev) ||
+ (FROM_WED(skb) && IS_DSA_LAN(dev)))));
} else {
entry.ipv6_5t_route.iblk2.fqos = 0;
}