mirror_ubuntu-kernels/drivers/net/dsa/ocelot
Vladimir Oltean bacf93b056 net: dsa: remove port argument from ->change_tag_protocol()
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: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-05-12 16:38:55 -07:00
..
felix_vsc9959.c net: dsa: ocelot: accept 1000base-X for VSC9959 and VSC9953 2022-05-11 15:24:37 -07:00
felix.c net: dsa: remove port argument from ->change_tag_protocol() 2022-05-12 16:38:55 -07:00
felix.h net: dsa: felix: manage host flooding using a specific driver callback 2022-05-12 16:38:55 -07:00
Kconfig net: dsa: ocelot: felix: utilize shared mscc-miim driver for indirect MDIO access 2021-11-29 13:02:00 +00:00
Makefile net: dsa: seville: build as separate module 2020-09-18 17:52:51 -07:00
seville_vsc9953.c net: dsa: ocelot: accept 1000base-X for VSC9959 and VSC9953 2022-05-11 15:24:37 -07:00