• Vladimir Oltean's avatar
    net: dsa: remove port argument from ->change_tag_protocol() · bacf93b0
    Vladimir Oltean authored
    DSA has not supported (and probably will not support in the future
    either) independent tagging protocols per CPU port.
    
    Different switch drivers have different requirements, some may need to
    replicate some settings for each CPU port, some may need to apply some
    settings on a single CPU port, while some may have to configure some
    global settings and then some per-CPU-port settings.
    
    In any case, the current model where DSA calls ->change_tag_protocol for
    each CPU port turns out to be impractical for drivers where there are
    global things to be done. For example, felix calls dsa_tag_8021q_register(),
    which makes no sense per CPU port, so it suppresses the second call.
    
    Let drivers deal with replication towards all CPU ports, and remove the
    CPU port argument from the function prototype.
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Acked-by: default avatarLuiz Angelo Daros de Luca <luizluca@gmail.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    bacf93b0
dsa2.c 40.2 KB