Skip to content

mlxsw: Two sampling fixes

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mlxsw: spectrum_matchall: Perform protocol check earlierdrivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+7 -30 repliesApplied
2/6mlxsw: spectrum_matchall: Convert if statements to a switch statementdrivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+6 -30 repliesApplied
3/6mlxsw: spectrum_matchall: Perform priority checks earlierdrivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c+13 -180 repliesApplied
4/6selftests: mlxsw: Test matchall failure with protocol matchtools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh+17 -00 repliesApplied
5/6mlxsw: spectrum: Veto sampling if already enabled on portdrivers/net/ethernet/mellanox/mlxsw/spectrum.c+5 -00 repliesApplied
6/6selftests: mlxsw: Test vetoing of double samplingtools/testing/selftests/drivers/net/mlxsw/tc_sample.sh+30 -00 repliesApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] mlxsw: Two sampling fixes

From: Ido Schimmel <[email protected]>

This patchset fixes two bugs in recent sampling submissions.

The first fix, in patch #3, prevents matchall rules with sample action to be added in front of flower rules on egress. Patches #1-#2 are preparations meant at avoiding similar bugs in the future. Patch #4 is a selftest.

The second fix, in patch #5, prevents sampling from being enabled on a port if already enabled. Patch #6 is a selftest.

Ido Schimmel (6):
mlxsw: spectrum_matchall: Perform protocol check earlier
mlxsw: spectrum_matchall: Convert if statements to a switch statement
mlxsw: spectrum_matchall: Perform priority checks earlier
selftests: mlxsw: Test matchall failure with protocol match
mlxsw: spectrum: Veto sampling if already enabled on port
selftests: mlxsw: Test vetoing of double sampling

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  5 ++
 .../mellanox/mlxsw/spectrum_matchall.c        | 46 ++++++++++---------
 .../drivers/net/mlxsw/tc_restrictions.sh      | 17 +++++++
 .../selftests/drivers/net/mlxsw/tc_sample.sh  | 30 ++++++++++++
 4 files changed, 76 insertions(+), 22 deletions(-)
Signature · 1 line
2.30.2