1. 24 9月, 2020 1 次提交
    • F
      net: dsa: b53: Configure VLANs while not filtering · ed409f3b
      Florian Fainelli 提交于
      Update the B53 driver to support VLANs while not filtering. This
      requires us to enable VLAN globally within the switch upon driver
      initial configuration (dev->vlan_enabled).
      
      We also need to remove the code that dealt with PVID re-configuration in
      b53_vlan_filtering() since that function worked under the assumption
      that it would only be called to make a bridge VLAN filtering, or not
      filtering, and we would attempt to move the port's PVID accordingly.
      
      Now that VLANs are programmed all the time, even in the case of a
      non-VLAN filtering bridge, we would be programming a default_pvid for
      the bridged switch ports.
      
      We need the DSA receive path to pop the VLAN tag if it is the bridge's
      default_pvid because the CPU port is always programmed tagged in the
      programmed VLANs. In order to do so we utilize the
      dsa_untag_bridge_pvid() helper introduced in the commit before within
      net/dsa/tag_brcm.c.
      Acked-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ed409f3b
  2. 10 9月, 2020 1 次提交
  3. 01 5月, 2020 3 次提交
  4. 28 2月, 2020 1 次提交
  5. 09 1月, 2020 1 次提交
    • F
      net: dsa: Get information about stacked DSA protocol · 4d776482
      Florian Fainelli 提交于
      It is possible to stack multiple DSA switches in a way that they are not
      part of the tree (disjoint) but the DSA master of a switch is a DSA
      slave of another. When that happens switch drivers may have to know this
      is the case so as to determine whether their tagging protocol has a
      remove chance of working.
      
      This is useful for specific switch drivers such as b53 where devices
      have been known to be stacked in the wild without the Broadcom tag
      protocol supporting that feature. This allows b53 to continue supporting
      those devices by forcing the disabling of Broadcom tags on the outermost
      switches if necessary.
      
      The get_tag_protocol() function is therefore updated to gain an
      additional enum dsa_tag_protocol argument which denotes the current
      tagging protocol used by the DSA master we are attached to, else
      DSA_TAG_PROTO_NONE for the top of the dsa_switch_tree.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d776482
  6. 29 10月, 2019 1 次提交
  7. 16 9月, 2019 1 次提交
  8. 01 5月, 2019 1 次提交
  9. 25 2月, 2019 1 次提交
  10. 16 2月, 2019 1 次提交
  11. 06 9月, 2018 3 次提交
  12. 07 6月, 2018 1 次提交
  13. 01 6月, 2018 1 次提交
  14. 27 4月, 2018 2 次提交
  15. 05 3月, 2018 1 次提交
  16. 03 12月, 2017 1 次提交
  17. 01 12月, 2017 1 次提交
  18. 29 10月, 2017 1 次提交
  19. 20 9月, 2017 6 次提交
  20. 08 8月, 2017 4 次提交
  21. 18 5月, 2017 1 次提交
  22. 31 1月, 2017 1 次提交
  23. 30 1月, 2017 2 次提交
  24. 23 1月, 2017 1 次提交
  25. 10 1月, 2017 1 次提交
  26. 07 1月, 2017 1 次提交