diff mbox series

[RFC,v1] net: ethernet: mtk_ppe: Change PPE entries number to 32K

Message ID TY3P286MB2611CC17BC0A189DB15620EA98CA2@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (mailing list archive)
State New, archived
Headers show
Series [RFC,v1] net: ethernet: mtk_ppe: Change PPE entries number to 32K | expand

Commit Message

Shengyu Qu June 22, 2024, 11:23 a.m. UTC
MT7981,7986 and 7988 all supports 32768 PPE entries, but only set to
8192 entries in driver. So incrase max entries to 12768 instead.

Signed-off-by: Elad Yifee <eladwf@gmail.com>
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
---
This patch is set to RFC because I cannot find any documentation for
earlier devices like MT7621 that describes their max entries, and need
more information or testing to find out whether this patch would work on
those devices.
---
 drivers/net/ethernet/mediatek/mtk_ppe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/ethernet/mediatek/mtk_ppe.h b/drivers/net/ethernet/mediatek/mtk_ppe.h
index 691806bca372..6db85d897fa9 100644
--- a/drivers/net/ethernet/mediatek/mtk_ppe.h
+++ b/drivers/net/ethernet/mediatek/mtk_ppe.h
@@ -8,7 +8,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/rhashtable.h>
 
-#define MTK_PPE_ENTRIES_SHIFT		3
+#define MTK_PPE_ENTRIES_SHIFT		5
 #define MTK_PPE_ENTRIES			(1024 << MTK_PPE_ENTRIES_SHIFT)
 #define MTK_PPE_HASH_MASK		(MTK_PPE_ENTRIES - 1)
 #define MTK_PPE_WAIT_TIMEOUT_US		1000000