提交 6b30cfa8 编写于 作者: O Oleksij Rempel 提交者: Paolo Abeni

net: dsa: microchip: enable MTU normalization for KSZ8795 and KSZ9477 compatible switches

KSZ8795 and KSZ9477 compatible series of switches use global max frame
size configuration register. So, enable MTU normalization for this reason.
Signed-off-by: NOleksij Rempel <o.rempel@pengutronix.de>
Acked-by: NArun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: NVladimir Oltean <olteanv@gmail.com>
Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
上级 29d1e85f
...@@ -1357,6 +1357,8 @@ int ksz8_setup(struct dsa_switch *ds) ...@@ -1357,6 +1357,8 @@ int ksz8_setup(struct dsa_switch *ds)
struct ksz_device *dev = ds->priv; struct ksz_device *dev = ds->priv;
int i; int i;
ds->mtu_enforcement_ingress = true;
ksz_cfg(dev, S_REPLACE_VID_CTRL, SW_FLOW_CTRL, true); ksz_cfg(dev, S_REPLACE_VID_CTRL, SW_FLOW_CTRL, true);
/* Enable automatic fast aging when link changed detected. */ /* Enable automatic fast aging when link changed detected. */
......
...@@ -1134,6 +1134,8 @@ int ksz9477_setup(struct dsa_switch *ds) ...@@ -1134,6 +1134,8 @@ int ksz9477_setup(struct dsa_switch *ds)
struct ksz_device *dev = ds->priv; struct ksz_device *dev = ds->priv;
int ret = 0; int ret = 0;
ds->mtu_enforcement_ingress = true;
/* Required for port partitioning. */ /* Required for port partitioning. */
ksz9477_cfg32(dev, REG_SW_QM_CTRL__4, UNICAST_VLAN_BOUNDARY, ksz9477_cfg32(dev, REG_SW_QM_CTRL__4, UNICAST_VLAN_BOUNDARY,
true); true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册