Home
last modified time | relevance | path

Searched hist:"066 dfc4290406b1b0b014ae3267d4266a344efd1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/dsa/
H A Dmaster.cdiff 066dfc4290406b1b0b014ae3267d4266a344efd1 Thu Mar 31 08:28:54 CDT 2022 Vladimir Oltean <vladimir.oltean@nxp.com> Revert "net: dsa: stop updating master MTU from master.c"

This reverts commit a1ff94c2973c43bc1e2677ac63ebb15b1d1ff846.

Switch drivers that don't implement ->port_change_mtu() will cause the
DSA master to remain with an MTU of 1500, since we've deleted the other
code path. In turn, this causes a regression for those systems, where
MTU-sized traffic can no longer be terminated.

Revert the change taking into account the fact that rtnl_lock() is now
taken top-level from the callers of dsa_master_setup() and
dsa_master_teardown(). Also add a comment in order for it to be
absolutely clear why it is still needed.

Fixes: a1ff94c2973c ("net: dsa: stop updating master MTU from master.c")
Reported-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>