1. 30 1月, 2017 2 次提交
    • V
      net: dsa: pass bridge device when a port leaves · f123f2fb
      Vivien Didelot 提交于
      Upon reception of the NETDEV_CHANGEUPPER, a leaving port is already
      unbridged, so reflect this by assigning the port's bridge_dev pointer to
      NULL before calling the port_bridge_leave DSA driver operation.
      
      Now that the bridge_dev pointer is exposed to the drivers, reflecting
      the current state of the DSA switch fabric is necessary for the drivers
      to adjust their port based VLANs correctly.
      
      Pass the bridge device pointer to the port_bridge_leave operation so
      that drivers have all information to re-program their chips properly,
      and do not need to cache it anymore.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f123f2fb
    • V
      net: dsa: variable number of ports · a0c02161
      Vivien Didelot 提交于
      Change the ports[DSA_MAX_PORTS] array of the dsa_switch structure for a
      zero-length array, allocated at the same time as the dsa_switch
      structure itself. A dsa_switch_alloc() helper is provided for that.
      
      This commit brings no functional change yet since we pass DSA_MAX_PORTS
      as the number of ports for the moment. Future patches can update the DSA
      drivers separately to support dynamic number of ports.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0c02161
  2. 27 1月, 2017 1 次提交
  3. 25 1月, 2017 4 次提交
  4. 21 1月, 2017 1 次提交
  5. 14 1月, 2017 1 次提交
  6. 10 1月, 2017 2 次提交
  7. 05 1月, 2017 1 次提交
  8. 03 1月, 2017 1 次提交
  9. 17 12月, 2016 1 次提交
  10. 07 12月, 2016 4 次提交
  11. 06 12月, 2016 1 次提交
  12. 04 12月, 2016 9 次提交
  13. 29 11月, 2016 3 次提交
  14. 25 11月, 2016 1 次提交
  15. 22 11月, 2016 8 次提交