1. 26 11月, 2016 1 次提交
    • N
      mlxsw: Change trap set function · d570b7ee
      Nogah Frankel 提交于
      Change trap setting function so instead of determining the trap group by
      trap id, it gets it as a parameter (so later we can have different trap
      groups for Spectrum and Switchx2).
      Add "is_ctrl" parameter to the trap setting function. It control whether
      the trapped packets wait in a designated control buffer or in their
      default one. This parameter is ignored by Switchx2 and Switchib.
      Add these parameters to the traps array in Spectrum, Switchx2 and
      Switchib.
      Signed-off-by: NNogah Frankel <nogahf@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d570b7ee
  2. 22 11月, 2016 1 次提交
  3. 14 11月, 2016 1 次提交
  4. 31 10月, 2016 3 次提交
  5. 24 10月, 2016 2 次提交
  6. 20 9月, 2016 1 次提交
  7. 14 9月, 2016 2 次提交
  8. 25 8月, 2016 1 次提交
  9. 18 8月, 2016 2 次提交
  10. 25 7月, 2016 3 次提交
  11. 21 7月, 2016 1 次提交
  12. 16 7月, 2016 1 次提交
    • I
      mlxsw: spectrum: Prevent invalid ingress buffer mapping · 11719a58
      Ido Schimmel 提交于
      Packets entering the switch are mapped to a Switch Priority (SP)
      according to their PCP value (untagged frames are mapped to SP 0).
      
      The packets are classified to a priority group (PG) buffer in the port's
      headroom according to their SP.
      
      The switch maintains another mapping (SP to IEEE priority), which is
      used to generate PFC frames for lossless PGs. This mapping is
      initialized to IEEE = SP % 8.
      
      Therefore, when mapping SP 'x' to PG 'y' we create a situation in which
      an IEEE priority is mapped to two different PGs:
      
      IEEE 'x' ---> SP 'x' ---> PG 'y'
      IEEE 'x' ---> SP 'x + 8' ---> PG '0' (default)
      
      Which is invalid, as a flow can use only one PG buffer.
      
      Fix this by mapping both SP 'x' and 'x + 8' to the same PG buffer.
      
      Fixes: 8e8dfe9f ("mlxsw: spectrum: Add IEEE 802.1Qaz ETS support")
      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>
      11719a58
  13. 06 7月, 2016 4 次提交
  14. 05 7月, 2016 4 次提交
  15. 03 7月, 2016 3 次提交
  16. 15 4月, 2016 3 次提交
  17. 09 4月, 2016 2 次提交
  18. 07 4月, 2016 5 次提交