mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
realtek: dsa: Record number of supported MSTs
Each SoC supports a different number of MST(I)s. The code must know this limitation to correctly reject unsupported MSTIs or to allocate a large enough mapping table. Signed-off-by: Sven Eckelmann <se@simonwunderlich.de> Link: https://github.com/openwrt/openwrt/pull/20421 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
9c2e8d6cef
commit
280cf19cdb
2 changed files with 5 additions and 0 deletions
|
|
@ -1467,6 +1467,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
|
|||
rtl8380_get_version(priv);
|
||||
priv->ds->num_lag_ids = 8;
|
||||
priv->l2_bucket_size = 4;
|
||||
priv->n_mst = 64;
|
||||
priv->n_pie_blocks = 12;
|
||||
priv->port_ignore = 0x1f;
|
||||
priv->n_counters = 128;
|
||||
|
|
@ -1483,6 +1484,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
|
|||
rtl8390_get_version(priv);
|
||||
priv->ds->num_lag_ids = 16;
|
||||
priv->l2_bucket_size = 4;
|
||||
priv->n_mst = 256;
|
||||
priv->n_pie_blocks = 18;
|
||||
priv->port_ignore = 0x3f;
|
||||
priv->n_counters = 1024;
|
||||
|
|
@ -1503,6 +1505,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
|
|||
priv->ds->num_lag_ids = 16;
|
||||
sw_w32(0, RTL930X_ST_CTRL);
|
||||
priv->l2_bucket_size = 8;
|
||||
priv->n_mst = 64;
|
||||
priv->n_pie_blocks = 16;
|
||||
priv->port_ignore = 0x3f;
|
||||
priv->n_counters = 2048;
|
||||
|
|
@ -1523,6 +1526,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
|
|||
priv->ds->num_lag_ids = 16;
|
||||
sw_w32(0, RTL931x_ST_CTRL);
|
||||
priv->l2_bucket_size = 8;
|
||||
priv->n_mst = 128;
|
||||
priv->n_pie_blocks = 16;
|
||||
priv->port_ignore = 0x3f;
|
||||
priv->n_counters = 2048;
|
||||
|
|
|
|||
|
|
@ -1215,6 +1215,7 @@ struct rtl838x_switch_priv {
|
|||
u64 irq_mask;
|
||||
u32 fib_entries;
|
||||
int l2_bucket_size;
|
||||
u16 n_mst;
|
||||
struct dentry *dbgfs_dir;
|
||||
|
||||
/** @lags_port_members: Port (bit) is part of a specific LAG */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue