diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-05-11 11:50:15 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-13 01:38:54 +0200 |
commit | 910ee6cce92fc0d0c459967ac95902d7bf3e41bf (patch) | |
tree | 30b7dc2911c5ffa48bfe20068eb652c37ce29b45 /drivers/net/ethernet/mscc/ocelot.c | |
parent | net: dsa: felix: bring the NPI port indirection for host MDBs to surface (diff) | |
download | linux-910ee6cce92fc0d0c459967ac95902d7bf3e41bf.tar.xz linux-910ee6cce92fc0d0c459967ac95902d7bf3e41bf.zip |
net: dsa: felix: bring the NPI port indirection for host flooding to surface
For symmetry with host FDBs and MDBs where the indirection is now
handled outside the ocelot switch lib, do the same for bridge port
flags (unicast/multicast/broadcast flooding).
The only caller of the ocelot switch lib which uses the NPI port is the
Felix DSA driver.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot.c')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 29e8011e4a91..e0d1d5b59981 100644 --- a/drivers/net/ethernet/mscc/ocelot.c +++ b/drivers/net/ethernet/mscc/ocelot.c @@ -2943,9 +2943,6 @@ EXPORT_SYMBOL(ocelot_port_pre_bridge_flags); void ocelot_port_bridge_flags(struct ocelot *ocelot, int port, struct switchdev_brport_flags flags) { - if (port == ocelot->npi) - port = ocelot->num_phys_ports; - if (flags.mask & BR_LEARNING) ocelot_port_set_learning(ocelot, port, !!(flags.val & BR_LEARNING)); |