]> 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)
commit1ee623c2a77d6218822529f81cba2497e27c41ce
tree539d61930d6a33512c7e1fe54f3b6a9c5075126f
parent0f7314b90e4ab0d70c616fa7d35662fb8a61e847
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