]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/dsa/legacy.c
net: dsa: Fix dependencies on bridge
[mirror_ubuntu-bionic-kernel.git] / net / dsa / legacy.c
index 4863e3e398b616714f668dc0edcc06f446867fb9..84611d7fcfa2c973c02b08b55e048d69ca4837c1 100644 (file)
@@ -151,7 +151,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds,
                const struct dsa_device_ops *tag_ops;
                enum dsa_tag_protocol tag_protocol;
 
-               tag_protocol = ops->get_tag_protocol(ds);
+               tag_protocol = ops->get_tag_protocol(ds, dst->cpu_dp->index);
                tag_ops = dsa_resolve_tag_protocol(tag_protocol);
                if (IS_ERR(tag_ops))
                        return PTR_ERR(tag_ops);