1. 11 11月, 2017 1 次提交
    • A
      net: dsa: mv88e6xxx: Fixed port netdev check for VLANs · cd886469
      Andrew Lunn 提交于
      Having the same VLAN on multiple bridges is currently unsupported as
      an offload. mv88e6xxx_port_check_hw_vlan() is used to ensure that a
      VLAN is not on multiple bridges when adding a VLAN range to a port. It
      loops the ports and checks to see if there are ports in a different
      bridge with the same VLAN.
      
      While walking all switch ports, the code was checking if the new port
      has a netdev slave attached to it. If not, skip checking the port
      being walked. This seems like a typ0. If the new port does not have a
      slave, how has a VLAN been added to it in the first place, requiring
      this check be performed at all? More likely, we should be checking if
      the port being walked has a slave. Without the port having a slave, it
      cannot have a VLAN on it, so there is no need to check further for
      that particular port.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cd886469
  2. 27 10月, 2017 2 次提交
  3. 18 10月, 2017 2 次提交
  4. 15 10月, 2017 1 次提交
    • V
      net: dsa: mv88e6xxx: setup random mac address · 04a69a17
      Vivien Didelot 提交于
      An Ethernet switch may support having a MAC address, which can be used
      as the switch's source address in transmitted full-duplex Pause frames.
      
      If a DSA switch supports the related .set_addr operation, the DSA core
      sets the master's MAC address on the switch. This won't make sense
      anymore in a multi-CPU ports system, because there won't be a unique
      master device assigned to a switch tree.
      
      Instead, setup the switch from within the Marvell driver with a random
      MAC address, and remove the .set_addr implementation.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      04a69a17
  5. 29 9月, 2017 2 次提交
  6. 21 8月, 2017 1 次提交
  7. 08 8月, 2017 5 次提交
  8. 02 8月, 2017 5 次提交
  9. 25 7月, 2017 1 次提交
  10. 20 7月, 2017 1 次提交
  11. 19 7月, 2017 7 次提交
  12. 21 6月, 2017 1 次提交
    • V
      net: dsa: mv88e6xxx: add irl_init_all op · cd8da8bb
      Vivien Didelot 提交于
      Some Marvell chips have an Ingress Rate Limit unit. But the command
      values slightly differs between models: 88E6352 use 3-bit for operations
      while 88E6390 use different 2-bit operations.
      
      This commit kills the IRL flags in favor of a new operation implementing
      the "Init all resources to the initial state" operation.
      
      This fixes the operation of 88E6390 family where 0x1000 means Read the
      selected resource 0, register 0 on port 16, instead of init all.
      
      A mv88e6xxx_irl_setup helper is added to wrap the operation call.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cd8da8bb
  13. 16 6月, 2017 7 次提交
  14. 13 6月, 2017 4 次提交