1. 27 Mar, 2020 38 commits
  2. 26 Mar, 2020 2 commits
    • David S. Miller's avatar
      Merge branch 'mlxsw-Offload-TC-action-pedit-munge-dsfield' · 92b7e62e
      David S. Miller authored
      Ido Schimmel says:
      
      ====================
      mlxsw: Offload TC action pedit munge dsfield
      
      Petr says:
      
      The Spectrum switches allow packet prioritization based on DSCP on ingress,
      and update of DSCP on egress. This is configured through the DCB APP rules.
      For some use cases, assigning a custom DSCP value based on an ACL match is
      a better tool. To that end, offload FLOW_ACTION_MANGLE to permit changing
      of dsfield as a whole, or DSCP and ECN values in isolation.
      
      After fixing a commentary nit in patch #1, and mlxsw naming in patch #2,
      patches #3 and #4 add the offload to mlxsw.
      
      Patch #5 adds a forwarding selftest for pedit dsfield, applicable to SW as
      well as HW datapaths. Patch #6 adds a mlxsw-specific test to verify DSCP
      rewrite due to DCB APP rules is not performed on pedited packets.
      
      The tests only cover IPv4 dsfield setting. We have tests for IPv6 as well,
      but would like to postpone their contribution until the corresponding
      iproute patches have been accepted.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      92b7e62e
    • Petr Machata's avatar
      selftests: mlxsw: qos_dscp_router: Test no DSCP rewrite after pedit · 9a9dffcb
      Petr Machata authored
      When DSCP is updated through an offloaded pedit action, DSCP rewrite on
      egress should be disabled. Add a test that check that it is so.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9a9dffcb