aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.10
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2022-03-21 17:53:10 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-03-27 17:38:49 +0100
commit9caa6f0aa742253901c72f43eebecd2c8da5f127 (patch)
tree1fc5e2d71258e50c9462a2289dd3bd8003801165 /target/linux/generic/hack-5.10
parent876a49ca621f7d7b73134f7bf93f301508e38354 (diff)
downloadupstream-9caa6f0aa742253901c72f43eebecd2c8da5f127.tar.gz
upstream-9caa6f0aa742253901c72f43eebecd2c8da5f127.tar.bz2
upstream-9caa6f0aa742253901c72f43eebecd2c8da5f127.zip
kernel: Backport mv88e6xxx patch to keep pvid at 0 if VLAN-unaware and remove hack
Backport patch 8b6836d82470 ("net: dsa: mv88e6xxx: keep the pvid at 0 when VLAN-unaware") from 5.15. Keeping the pvid at 0 when VLAN-unaware makes it possible to drop the hack introduced in commit 920eaab1d817 ("kernel: DSA roaming fix for Marvell mv88e6xxx"). Dropping the hack makes it possible to use VLAN interfaces with VID 1 on DSA ports without problems with FDB. Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Diffstat (limited to 'target/linux/generic/hack-5.10')
-rw-r--r--target/linux/generic/hack-5.10/710-net-dsa-mv88e6xxx-default-VID-1.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/target/linux/generic/hack-5.10/710-net-dsa-mv88e6xxx-default-VID-1.patch b/target/linux/generic/hack-5.10/710-net-dsa-mv88e6xxx-default-VID-1.patch
deleted file mode 100644
index 03725653f9..0000000000
--- a/target/linux/generic/hack-5.10/710-net-dsa-mv88e6xxx-default-VID-1.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/drivers/net/dsa/mv88e6xxx/chip.c
-+++ b/drivers/net/dsa/mv88e6xxx/chip.c
-@@ -2097,6 +2097,7 @@ static int mv88e6xxx_port_fdb_add(struct
- 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);
-@@ -2111,6 +2112,7 @@ static int mv88e6xxx_port_fdb_del(struct
- 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);