Skip to content

Commit ca18300

Browse files
Headcrabedkuba-moo
authored andcommitted
net: ethernet: mtk_ppe: Change PPE entries number to 16K
MT7981,7986 and 7988 all supports 32768 PPE entries, and MT7621/MT7620 supports 16384 PPE entries, but only set to 8192 entries in driver. So incrase max entries to 16384 instead. Signed-off-by: Elad Yifee <[email protected]> Signed-off-by: Shengyu Qu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/TY3P286MB261103F937DE4EEB0F88437D98DE2@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fcf3c8c commit ca18300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mediatek/mtk_ppe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <linux/bitfield.h>
99
#include <linux/rhashtable.h>
1010

11-
#define MTK_PPE_ENTRIES_SHIFT 3
11+
#define MTK_PPE_ENTRIES_SHIFT 4
1212
#define MTK_PPE_ENTRIES (1024 << MTK_PPE_ENTRIES_SHIFT)
1313
#define MTK_PPE_HASH_MASK (MTK_PPE_ENTRIES - 1)
1414
#define MTK_PPE_WAIT_TIMEOUT_US 1000000

0 commit comments

Comments
 (0)