1. 05 10月, 2017 1 次提交
  2. 04 10月, 2017 1 次提交
  3. 20 9月, 2017 3 次提交
  4. 13 9月, 2017 1 次提交
    • Y
      mlxsw: spectrum: Prevent mirred-related crash on removal · 6399ebcc
      Yuval Mintz 提交于
      When removing the offloading of mirred actions under
      matchall classifiers, mlxsw would find the destination port
      associated with the offloaded action and utilize it for undoing
      the configuration.
      
      Depending on the order by which ports are removed, it's possible that
      the destination port would get removed before the source port.
      In such a scenario, when actions would be flushed for the source port
      mlxsw would perform an illegal dereference as the destination port is
      no longer listed.
      
      Since the only item necessary for undoing the configuration on the
      destination side is the port-id and that in turn is already maintained
      by mlxsw on the source-port, simply stop trying to access the
      destination port and use the port-id directly instead.
      
      Fixes: 763b4b70 ("mlxsw: spectrum: Add support in matchall mirror TC offloading")
      Signed-off-by: NYuval Mintz <yuvalm@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6399ebcc
  5. 12 9月, 2017 1 次提交
  6. 04 9月, 2017 1 次提交
  7. 02 9月, 2017 1 次提交
  8. 25 8月, 2017 2 次提交
  9. 24 8月, 2017 1 次提交
  10. 12 8月, 2017 2 次提交
  11. 08 8月, 2017 6 次提交
  12. 05 8月, 2017 1 次提交
  13. 19 7月, 2017 2 次提交
  14. 18 7月, 2017 3 次提交
  15. 15 6月, 2017 1 次提交
  16. 09 6月, 2017 5 次提交
  17. 08 6月, 2017 1 次提交
  18. 07 6月, 2017 1 次提交
  19. 05 6月, 2017 1 次提交
  20. 02 6月, 2017 1 次提交
  21. 27 5月, 2017 4 次提交
    • I
      mlxsw: spectrum: Implement common FID core · a1107487
      Ido Schimmel 提交于
      The device supports three types of FIDs. 802.1Q and 802.1D FIDs for
      VLAN-aware and VLAN-unaware bridges (respectively) and rFIDs to
      transport packets to the router block.
      
      The different users (e.g., bridge, router, ACLs) of the FIDs
      infrastructure need not know about the internal FIDs implementation and
      can therefore interact with it using a restricted set of exported
      functions.
      
      By encapsulating the entire FID logic and hiding it from the rest of the
      driver we get a code base that it much simpler and easier to work with
      and extend.
      
      For example, in the current Spectrum ASIC only 802.1D FIDs can be
      assigned a VNI, but future ASICs will also support 802.1Q FIDs. With
      this patch in place, support for future ASICs can be easily added by
      implementing a new FID operations according to their capabilities.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a1107487
    • I
      mlxsw: spectrum: Replace vPorts with Port-VLAN · c57529e1
      Ido Schimmel 提交于
      As explained in the cover letter, since the introduction of the bridge
      offload in the mlxsw driver, information related to the offloaded bridge
      and bridge ports was stored in the individual port struct,
      mlxsw_sp_port.
      
      This lead to a bloated struct storing both physical properties of the
      port (e.g., autoneg status) as well as logical properties of an upper
      bridge port (e.g., learning, mrouter indication). While this might work
      well for simple devices, it proved to be hard to extend when stacked
      devices were taken into account and more advanced use-cases (e.g., IGMP
      snooping) considered.
      
      This patch removes the excess information from the above struct and
      instead stores it in more appropriate structs that represent the bridge
      port, the bridge itself and a VLAN configured on the bridge port.
      
      The membership of a port in a bridge is denoted using the Port-VLAN
      struct, which points to the bridge port and also member in the bridge
      VLAN group of the VLAN it represents. This allows us to completely
      remove the vPort abstraction and consolidate many of the code paths
      relating to VLAN-aware and unaware bridges.
      
      Note that the FID / vFID code is currently duplicated, but this will
      soon go away when the common FID core will be introduced.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c57529e1
    • I
      mlxsw: spectrum: Don't create FIDs upon creation of VLAN uppers · ed9ddd3a
      Ido Schimmel 提交于
      Up until now we used to create FIDs upon the creation of VLAN uppers on
      top of the VLAN-aware bridge. This was done so that in case a router
      interface (RIF) was configured on top of the bridge, the FID would
      already be there.
      
      Instead, simplify the code and only create the FID upon RIF creation.
      
      This is an intermediary step towards the introduction of the common FID
      core, in which this code would be completely removed.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ed9ddd3a
    • I
      mlxsw: spectrum: Don't lose bridge port device during enslavement · f0cebd81
      Ido Schimmel 提交于
      Currently, when port netdevs (or their uppers) are enslaved to a bridge,
      we simply propagate the CHANGEUPPER event all the way down and lose the
      context of the actual netdevice used as the bridge port.
      
      This leads to a lot of information hanging off the ports (and vPorts),
      which doesn't logically belong there, such as mrouter indication and
      unknown unicast flood state.
      
      Following patches are going to put the mlxsw_sp_port struct on diet and
      instead introduce a bridge port struct, where the above mentioned
      information belongs. But in order to do that, we need to be able to
      determine the bridge port netdevice, so propagate it down.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f0cebd81