ath25: switch default kernel to 5.15
[openwrt/staging/ldir.git] / target / linux / generic / pending-5.10 / 760-net-dsa-mv88e6xxx-fix-vlan-setup.patch
1 From a1b291f3f6c80a6c5ccad7283fc472d77a2a4763 Mon Sep 17 00:00:00 2001
2 From: Russell King <rmk+kernel@armlinux.org.uk>
3 Date: Sun, 22 Dec 2019 12:40:11 +0000
4 Subject: [PATCH] net: dsa: mv88e6xxx: fix vlan setup
5
6 Provide an option that drivers can set to indicate they want to receive
7 vlan configuration even when vlan filtering is disabled. This is safe
8 for Marvell DSA bridges, which do not look up ingress traffic in the
9 VTU if the port is in 8021Q disabled state. Whether this change is
10 suitable for all DSA bridges is not known.
11
12 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
13 Signed-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 @@ -2934,6 +2934,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