Skip to content

mlxsw: spectrum: Enforce some HW limitations for matchall TC offload

Ido Schimmel netdev 1 version Applied

Status from this message: Applied, thank you!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9mlxsw: spectrum_matchall: Restrict sample action to be allowed only on ingressdrivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+5 -00 replies
2/9mlxsw: spectrum_flower: Expose a function to get min and max rule prioritydrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c +2 more+75 -70 replies
3/9mlxsw: spectrum_matchall: Put matchall list into substruct of flow structdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_flow.c drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+9 -70 replies
4/9mlxsw: spectrum_matchall: Expose a function to get min and max rule prioritydrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+38 -00 replies
5/9mlxsw: spectrum_matchall: Forbid to insert matchall rules in collision with flower rulesdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_flow.c drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+41 -30 replies
6/9mlxsw: spectrum_flower: Forbid to insert flower rules in collision with matchall rulesdrivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c+32 -00 replies
7/9selftests: mlxsw: rename tc_flower_restrictions.sh to tc_restrictions.shtools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh+0 -00 replies
8/9selftests: mlxsw: tc_restrictions: add test to check sample action restrictionstools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh+25 -00 replies
9/9selftests: mlxsw: tc_restrictions: add couple of test for the correct matchall-flower orderingtools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh+107 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/9] mlxsw: spectrum: Enforce some HW limitations for matchall TC offload

From: Ido Schimmel <[email protected]>

Jiri says:

There are some limitations for TC matchall classifier offload that are given by the mlxsw HW dataplane. It is not possible to do sampling on egress and also the mirror/sample vs. ACL (flower) ordering is fixed. So check this and forbid to offload incorrect setup.

Jiri Pirko (9):
mlxsw: spectrum_matchall: Restrict sample action to be allowed only on
ingress
mlxsw: spectrum_flower: Expose a function to get min and max rule
priority
mlxsw: spectrum_matchall: Put matchall list into substruct of flow
struct
mlxsw: spectrum_matchall: Expose a function to get min and max rule
priority
mlxsw: spectrum_matchall: Forbid to insert matchall rules in collision
with flower rules
mlxsw: spectrum_flower: Forbid to insert flower rules in collision
with matchall rules
selftests: mlxsw: rename tc_flower_restrictions.sh to
tc_restrictions.sh
selftests: mlxsw: tc_restrictions: add test to check sample action
restrictions
selftests: mlxsw: tc_restrictions: add couple of test for the correct
matchall-flower ordering

 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  18 ++-
 .../ethernet/mellanox/mlxsw/spectrum_acl.c    |  13 +-
 .../mellanox/mlxsw/spectrum_acl_tcam.c        |  39 +++++-
 .../mellanox/mlxsw/spectrum_acl_tcam.h        |   3 +-
 .../ethernet/mellanox/mlxsw/spectrum_flow.c   |   6 +-
 .../ethernet/mellanox/mlxsw/spectrum_flower.c |  52 +++++++
 .../mellanox/mlxsw/spectrum_matchall.c        |  86 +++++++++++-
 ...wer_restrictions.sh => tc_restrictions.sh} | 132 ++++++++++++++++++
 8 files changed, 332 insertions(+), 17 deletions(-)
 rename tools/testing/selftests/drivers/net/mlxsw/{tc_flower_restrictions.sh => tc_restrictions.sh} (53%)
Signature · 1 line
2.26.2