1. 24 11月, 2015 1 次提交
  2. 19 8月, 2015 1 次提交
    • A
      net: dsa: Allow multi hop routes to be expressed · 1e72e6f8
      Andrew Lunn 提交于
      With more than two switches in a hierarchy, it becomes necessary to
      describe multi-hop routes between switches. The current binding does
      not allow this, although the older platform_data did. Extend the link
      property to be a list rather than a single phandle to a remote switch.
      It is then possible to express that a port should be used to reach
      more than one switch and the switch maybe more than one hop away.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e72e6f8
  3. 11 8月, 2015 1 次提交
  4. 07 4月, 2015 1 次提交
    • P
      net: dsa: fix filling routing table from OF description · 30303813
      Pavel Nakonechny 提交于
      According to description in 'include/net/dsa.h', in cascade switches
      configurations where there are more than one interconnected devices,
      'rtable' array in 'dsa_chip_data' structure is used to indicate which
      port on this switch should be used to send packets to that are destined
      for corresponding switch.
      
      However, dsa_of_setup_routing_table() fills 'rtable' with port numbers
      of the _target_ switch, but not current one.
      
      This commit removes redundant devicetree parsing and adds needed port
      number as a function argument. So dsa_of_setup_routing_table() now just
      looks for target switch number by parsing parent of 'link' device node.
      
      To remove possible misunderstandings with the way of determining target
      switch number, a corresponding comment was added to the source code and
      to the DSA device tree bindings documentation file.
      
      This was tested on a custom board with two Marvell 88E6095 switches with
      following corresponding routing tables: { -1, 10 } and { 8, -1 }.
      Signed-off-by: NPavel Nakonechny <pavel.nakonechny@skitlab.ru>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      30303813
  5. 31 10月, 2014 1 次提交
  6. 28 8月, 2014 1 次提交
  7. 26 3月, 2013 1 次提交
  8. 25 3月, 2013 1 次提交