]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27f4b0a1c0c4cd9c6528a9a1862d436b86ae3198
tree539d61930d6a33512c7e1fe54f3b6a9c5075126f
parent0fd69c9dee15ffcb4a0da947e1f635f6a4f8e883
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