diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-05-05 19:22:12 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 21:00:12 -0700 |
commit | 28de0f9fec5a84bd5b56d6364432a8730eac410a (patch) | |
tree | 7b78c8a6e970ff85eefd890b558b21f77feec610 /include/soc/mscc | |
parent | a51c1c3f3218c74c07fed55ea2ad5b18c374dc25 (diff) | |
download | linux-28de0f9fec5a84bd5b56d6364432a8730eac410a.tar.bz2 |
net: dsa: felix: perform MDB migration based on ocelot->multicast list
The felix driver is the only user of dsa_port_walk_mdbs(), and there
isn't even a good reason for it, considering that the host MDB entries
are already saved by the ocelot switch lib in the ocelot->multicast list.
Rewrite the multicast entry migration procedure around the
ocelot->multicast list so we can delete dsa_port_walk_mdbs().
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc/mscc')
-rw-r--r-- | include/soc/mscc/ocelot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 8d8d46778f7e..e88bcfe4b2cd 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -998,6 +998,9 @@ int ocelot_mact_learn_streamdata(struct ocelot *ocelot, int dst_idx, enum macaccess_entry_type type, int sfid, int ssid); +int ocelot_migrate_mdbs(struct ocelot *ocelot, unsigned long from_mask, + unsigned long to_mask); + int ocelot_vcap_policer_add(struct ocelot *ocelot, u32 pol_ix, struct ocelot_policer *pol); int ocelot_vcap_policer_del(struct ocelot *ocelot, u32 pol_ix); |