diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-21 16:55:40 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 07:41:45 +0300 |
commit | d2be320495b93ffb469e53100ba1668d0cd7eedc (patch) | |
tree | 62c51ef61027523c39c0baf65dc60e103eefc850 /net/dsa/dsa_priv.h | |
parent | c5fb8ead3283955dc68671f853017b181f96fdc1 (diff) | |
download | linux-d2be320495b93ffb469e53100ba1668d0cd7eedc.tar.xz |
net: dsa: modularize DSA_TAG_PROTO_NONE
There is no reason that I can see why the no-op tagging protocol should
be registered manually, so make it a module and make all drivers which
have any sort of reference to DSA_TAG_PROTO_NONE select it.
Note that I don't know if ksz_get_tag_protocol() really needs this,
or if it's just the logic which is poorly written. All switches seem to
have their own tagging protocol, and DSA_TAG_PROTO_NONE is just a
fallback that never gets used.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index b60987e8d931..c4ea5fda8f14 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -384,7 +384,6 @@ int dsa_port_change_master(struct dsa_port *dp, struct net_device *master, struct netlink_ext_ack *extack); /* slave.c */ -extern const struct dsa_device_ops notag_netdev_ops; extern struct notifier_block dsa_slave_switchdev_notifier; extern struct notifier_block dsa_slave_switchdev_blocking_notifier; |