1. 03 10月, 2017 24 次提交
  2. 02 10月, 2017 14 次提交
  3. 01 10月, 2017 2 次提交
    • D
      Merge branch 'dsa_ptr-port' · 506d0a3e
      David S. Miller 提交于
      Vivien Didelot says:
      
      ====================
      net: dsa: change dsa_ptr for a dsa_port
      
      With DSA, a master net_device is physically wired to a dedicated CPU
      switch port. For interaction with the DSA layer, the struct net_device
      contains a dsa_ptr, which currently points to a dsa_switch_tree object.
      
      This is only valid for a switch fabric with a single CPU port. In order
      to support switch fabrics with multiple CPU ports, we first need to
      change the type of dsa_ptr to what it really is: a dsa_port object.
      
      This is what this patchset does. The first patches adds a
      dsa_master_get_slave helper and cleans up portions of DSA core to make
      the next patches more readable. These next patches prepare the xmit and
      receive hot paths and finally change dsa_ptr.
      
      Changes in v2:
        - introduce dsa_master_get_slave helper to simplify patch 6
        - keep hot path data at beginning of dsa_port for cacheline 1
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      506d0a3e
    • V
      net: dsa: remove tag ops from the switch tree · aa193d9b
      Vivien Didelot 提交于
      Now that the dsa_ptr is a dsa_port instance, there is no need to keep
      the tag operations in the dsa_switch_tree structure. Remove it.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aa193d9b