]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 Nov 2020 23:14:59 +0000 (15:14 -0800)
commita7e477a942db3065c67243bb9639c21a539a6212
tree9470ec8d6641eac446f6cb1eebcc9abde5360d9e
parentb84159fa50dce32cf14e4621f4d94f148b6861b2
net: dsa: qca8k: Fix port MTU setting

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: 25c7581f21d2 ("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>
drivers/net/dsa/qca8k.c