blob: a49b48f744a1bf7036f3a5a8ae7fd43318f701bf [file] [log] [blame]
developerec4ebe42022-04-12 11:17:45 +08001From a1b291f3f6c80a6c5ccad7283fc472d77a2a4763 Mon Sep 17 00:00:00 2001
2From: Russell King <rmk+kernel@armlinux.org.uk>
3Date: Sun, 22 Dec 2019 12:40:11 +0000
4Subject: [PATCH] net: dsa: mv88e6xxx: fix vlan setup
5
6Provide an option that drivers can set to indicate they want to receive
7vlan configuration even when vlan filtering is disabled. This is safe
8for Marvell DSA bridges, which do not look up ingress traffic in the
9VTU if the port is in 8021Q disabled state. Whether this change is
10suitable for all DSA bridges is not known.
11
12Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
13Signed-off-by: DENG Qingfang <dqfext@gmail.com>
14---
15 drivers/net/dsa/mv88e6xxx/chip.c | 1 +
16 1 file changed, 1 insertion(+)
17
18--- a/drivers/net/dsa/mv88e6xxx/chip.c
19+++ b/drivers/net/dsa/mv88e6xxx/chip.c
20@@ -2663,6 +2663,7 @@ static int mv88e6xxx_setup(struct dsa_sw
21
22 chip->ds = ds;
23 ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip);
24+ ds->configure_vlan_while_not_filtering = true;
25
26 mv88e6xxx_reg_lock(chip);
27