blob: 5dc5ac68257e50f802390f18e8146edbfa648a18 [file] [log] [blame]
developerec4ebe42022-04-12 11:17:45 +08001--- a/drivers/net/dsa/mv88e6xxx/chip.c
2+++ b/drivers/net/dsa/mv88e6xxx/chip.c
3@@ -1930,6 +1930,7 @@ static int mv88e6xxx_port_fdb_add(struct
4 struct mv88e6xxx_chip *chip = ds->priv;
5 int err;
6
7+ vid = vid ? : 1;
8 mv88e6xxx_reg_lock(chip);
9 err = mv88e6xxx_port_db_load_purge(chip, port, addr, vid,
10 MV88E6XXX_G1_ATU_DATA_STATE_UC_STATIC);
11@@ -1944,6 +1945,7 @@ static int mv88e6xxx_port_fdb_del(struct
12 struct mv88e6xxx_chip *chip = ds->priv;
13 int err;
14
15+ vid = vid ? : 1;
16 mv88e6xxx_reg_lock(chip);
17 err = mv88e6xxx_port_db_load_purge(chip, port, addr, vid, 0);
18 mv88e6xxx_reg_unlock(chip);