net: ethernet: stmicro: stmmac: permit MTU change with interface up
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 23 Jul 2022 14:29:33 +0000 (16:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 02:38:57 +0000 (19:38 -0700)
commit3470079687448abac42deb62774253be1d6bdef3
tree539d61930d6a33512c7e1fe54f3b6a9c5075126f
parentba39b344e9240a4a5fd4ab8178200b85cd1809da
net: ethernet: stmicro: stmmac: permit MTU change with interface up

Remove the limitation where the interface needs to be down to change
MTU by releasing and opening the stmmac driver to set the new MTU.
Also call the set_filter function to correctly init the port.
This permits to remove the EBUSY error while the ethernet port is
running permitting a correct MTU change if for example a DSA request
a MTU change for a switch CPU port.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c