]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: qca8k: Fix port MTU setting
authorJonathan McDowell <noodles@earth.li>
Fri, 30 Oct 2020 18:33:15 +0000 (18:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:58 +0000 (12:38 +0100)
commit202a14566585526b22a005ec728d02a8ea90211f
tree1640bfe18487402bcb0544f4a65df54fb32ecde0
parent177ee26ca0a5ef13d0a0dcc4adb7f1589e12953d
net: dsa: qca8k: Fix port MTU setting

[ Upstream commit 99cab7107d914a71c57f5a4e6d34292425fbbb61 ]

The qca8k only supports a switch-wide MTU setting, and the code to take
the max of all ports was only looking at the port currently being set.
Fix to examine all ports.

Reported-by: DENG Qingfang <dqfext@gmail.com>
Fixes: f58d2598cf70 ("net: dsa: qca8k: implement the port MTU callbacks")
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201030183315.GA6736@earth.li
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/qca8k.c