All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] mlxsw: Two sampling fixes
@ 2021-03-29 10:09 Ido Schimmel
  2021-03-29 10:09 ` [PATCH net-next 1/6] mlxsw: spectrum_matchall: Perform protocol check earlier Ido Schimmel
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Ido Schimmel @ 2021-03-29 10:09 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, jiri, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@nvidia.com>

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-29 20:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 10:09 [PATCH net-next 0/6] mlxsw: Two sampling fixes Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 1/6] mlxsw: spectrum_matchall: Perform protocol check earlier Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 2/6] mlxsw: spectrum_matchall: Convert if statements to a switch statement Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 3/6] mlxsw: spectrum_matchall: Perform priority checks earlier Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 4/6] selftests: mlxsw: Test matchall failure with protocol match Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 5/6] mlxsw: spectrum: Veto sampling if already enabled on port Ido Schimmel
2021-03-29 10:09 ` [PATCH net-next 6/6] selftests: mlxsw: Test vetoing of double sampling Ido Schimmel
2021-03-29 20:50 ` [PATCH net-next 0/6] mlxsw: Two sampling fixes patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.