]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: dsa: qca8k: drop MTU tracking from qca8k_priv
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 15 Apr 2022 23:30:12 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2022 12:28:28 +0000 (13:28 +0100)
commit69fd055957a02309ffdc23d887a01988b6e5bab1
tree2d52c82c391d3d24d75f821ab37f7b12cc884577
parentf9a2fb73318eb4dbf8cd84866b8b0dd012d8b116
net: dsa: qca8k: drop MTU tracking from qca8k_priv

DSA set the CPU port based on the largest MTU of all the slave ports.
Based on this we can drop the MTU array from qca8k_priv and set the
port_change_mtu logic on DSA changing MTU of the CPU port as the switch
have a global MTU settingfor each port.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-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