1 From ca18300e00d584d5693127eb60c108b84883b8ac Mon Sep 17 00:00:00 2001
2 From: Shengyu Qu <wiagn233@outlook.com>
3 Date: Fri, 5 Jul 2024 01:26:26 +0800
4 Subject: [PATCH] net: ethernet: mtk_ppe: Change PPE entries number to 16K
6 MT7981,7986 and 7988 all supports 32768 PPE entries, and MT7621/MT7620
7 supports 16384 PPE entries, but only set to 8192 entries in driver. So
8 incrase max entries to 16384 instead.
10 Signed-off-by: Elad Yifee <eladwf@gmail.com>
11 Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
12 Reviewed-by: Simon Horman <horms@kernel.org>
13 Link: https://patch.msgid.link/TY3P286MB261103F937DE4EEB0F88437D98DE2@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM
14 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
16 drivers/net/ethernet/mediatek/mtk_ppe.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 --- a/drivers/net/ethernet/mediatek/mtk_ppe.h
20 +++ b/drivers/net/ethernet/mediatek/mtk_ppe.h
22 #include <linux/bitfield.h>
23 #include <linux/rhashtable.h>
25 -#define MTK_PPE_ENTRIES_SHIFT 3
26 +#define MTK_PPE_ENTRIES_SHIFT 4
27 #define MTK_PPE_ENTRIES (1024 << MTK_PPE_ENTRIES_SHIFT)
28 #define MTK_PPE_HASH_MASK (MTK_PPE_ENTRIES - 1)
29 #define MTK_PPE_WAIT_TIMEOUT_US 1000000