• Vladimir Oltean's avatar
    net: dsa: stop updating master MTU from master.c · a1ff94c2
    Vladimir Oltean authored
    At present there are two paths for changing the MTU of the DSA master.
    
    The first is:
    
    dsa_tree_setup
    -> dsa_tree_setup_ports
       -> dsa_port_setup
          -> dsa_slave_create
             -> dsa_slave_change_mtu
                -> dev_set_mtu(master)
    
    The second is:
    
    dsa_tree_setup
    -> dsa_tree_setup_master
       -> dsa_master_setup
          -> dev_set_mtu(dev)
    
    So the dev_set_mtu() call from dsa_master_setup() has been effectively
    superseded by the dsa_slave_change_mtu(slave_dev, ETH_DATA_LEN) that is
    done from dsa_slave_create() for each user port. The later function also
    updates the master MTU according to the largest user port MTU from the
    tree. Therefore, updating the master MTU through a separate code path
    isn't needed.
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a1ff94c2
master.c 10.1 KB