提交 407308f6 编写于 作者: D David S. Miller

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

This reverts commit 422efd03.

It breaks ipv6.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 422efd03
...@@ -2058,13 +2058,15 @@ static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) ...@@ -2058,13 +2058,15 @@ static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port)
static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port)
{ {
struct dsa_switch *ds = chip->ds; struct dsa_switch *ds = chip->ds;
bool uc = dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port); bool flood;
bool mc = dsa_is_dsa_port(ds, port);
if (!chip->info->ops->port_set_egress_floods) /* Upstream ports flood frames with unknown unicast or multicast DA */
return 0; 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);
return chip->info->ops->port_set_egress_floods(chip, port, uc, mc); return 0;
} }
static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port, static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册