760-net-dsa-mv88e6xxx-fix-vlan-setup.patch 1013 B

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