net: dsa: qca8k: implement the port MTU callbacks
authorJonathan McDowell <noodles@earth.li>
Sat, 18 Jul 2020 16:32:14 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 01:34:16 +0000 (18:34 -0700)
commitf58d2598cf70d41f73e761b62a114d2e8f94a676
treec49024937defd11aca193872ac3b8df017cabd8e
parent2b96692bcfcd2be7c9aa55dc13440213cd54c654
net: dsa: qca8k: implement the port MTU callbacks

This switch has a single max frame size configuration register, so we
track the requested MTU for each port and apply the largest.

v2:
- Address review feedback from Vladimir Oltean

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Acked-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h