Commit cdfd4a6b authored by Lucas Stach's avatar Lucas Stach Committed by Ezequiel Garcia
Browse files

Revert "Revert "net: dsa: mv88e6xxx: do not flood CPU with unknown multicast""

This reverts commit 407308f6, as the RAVE
system needs the behavior, which was reverted in kernel 5.3.
parent fe60d728
......@@ -2376,15 +2376,13 @@ static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port)
static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port)
struct dsa_switch *ds = chip->ds;
bool flood;
bool uc = dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port);
bool mc = dsa_is_dsa_port(ds, port);
/* Upstream ports flood frames with unknown unicast or multicast DA */
flood = dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port);
if (chip->info->ops->port_set_egress_floods)
return chip->info->ops->port_set_egress_floods(chip, port,
flood, flood);
if (!chip->info->ops->port_set_egress_floods)
return 0;
return 0;
return chip->info->ops->port_set_egress_floods(chip, port, uc, mc);
static irqreturn_t mv88e6xxx_serdes_irq_thread_fn(int irq, void *dev_id)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment