2021-11-04 20:52:43 +00:00
|
|
|
--- a/drivers/net/dsa/mv88e6xxx/chip.c
|
|
|
|
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
|
2022-03-21 14:21:45 +00:00
|
|
|
@@ -2321,6 +2321,7 @@ static int mv88e6xxx_port_fdb_add(struct
|
2021-11-04 20:52:43 +00:00
|
|
|
struct mv88e6xxx_chip *chip = ds->priv;
|
|
|
|
int err;
|
|
|
|
|
|
|
|
+ vid = vid ? : 1;
|
|
|
|
mv88e6xxx_reg_lock(chip);
|
|
|
|
err = mv88e6xxx_port_db_load_purge(chip, port, addr, vid,
|
|
|
|
MV88E6XXX_G1_ATU_DATA_STATE_UC_STATIC);
|
2022-03-21 14:21:45 +00:00
|
|
|
@@ -2335,6 +2336,7 @@ static int mv88e6xxx_port_fdb_del(struct
|
2021-11-04 20:52:43 +00:00
|
|
|
struct mv88e6xxx_chip *chip = ds->priv;
|
|
|
|
int err;
|
|
|
|
|
|
|
|
+ vid = vid ? : 1;
|
|
|
|
mv88e6xxx_reg_lock(chip);
|
|
|
|
err = mv88e6xxx_port_db_load_purge(chip, port, addr, vid, 0);
|
|
|
|
mv88e6xxx_reg_unlock(chip);
|