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: Oleksij Rempel <o.rempel@pengutronix.de> Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
29d1e85f45
commit
6b30cfa86e
@ -1357,6 +1357,8 @@ int ksz8_setup(struct dsa_switch *ds)
|
||||
struct ksz_device *dev = ds->priv;
|
||||
int i;
|
||||
|
||||
ds->mtu_enforcement_ingress = true;
|
||||
|
||||
ksz_cfg(dev, S_REPLACE_VID_CTRL, SW_FLOW_CTRL, true);
|
||||
|
||||
/* Enable automatic fast aging when link changed detected. */
|
||||
|
@ -1134,6 +1134,8 @@ int ksz9477_setup(struct dsa_switch *ds)
|
||||
struct ksz_device *dev = ds->priv;
|
||||
int ret = 0;
|
||||
|
||||
ds->mtu_enforcement_ingress = true;
|
||||
|
||||
/* Required for port partitioning. */
|
||||
ksz9477_cfg32(dev, REG_SW_QM_CTRL__4, UNICAST_VLAN_BOUNDARY,
|
||||
true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user