mbox series

[net-next,0/5] mlxsw: Mirroring cleanups

Message ID 20200424154345.3677009-1-idosch@idosch.org
Headers show
Series mlxsw: Mirroring cleanups | expand

Message

Ido Schimmel April 24, 2020, 3:43 p.m. UTC
From: Ido Schimmel <idosch@mellanox.com>

This patch set contains various cleanups in SPAN (mirroring) code
noticed by Amit and I while working on future enhancements in this area.
No functional changes intended. Tested by current mirroring selftests.

Patches #1-#2 from Amit reduce nesting in a certain function and rename
a callback to a more meaningful name.

Patch #3 removes debug prints that have little value.

Patch #4 converts a reference count to 'refcount_t' in order to catch
over/under flows.

Patch #5 replaces a zero-length array with flexible-array member in
order to get a compiler warning in case the flexible array does not
occur last in the structure.

Amit Cohen (2):
  mlxsw: spectrum_span: Reduce nesting in
    mlxsw_sp_span_entry_configure()
  mlxsw: spectrum_span: Rename parms() to parms_set()

Ido Schimmel (3):
  mlxsw: spectrum_span: Remove unnecessary debug prints
  mlxsw: spectrum_span: Use 'refcount_t' for reference counting
  mlxsw: spectrum_span: Replace zero-length array with flexible-array
    member

 .../ethernet/mellanox/mlxsw/spectrum_span.c   | 66 ++++++++++---------
 .../ethernet/mellanox/mlxsw/spectrum_span.h   |  7 +-
 2 files changed, 39 insertions(+), 34 deletions(-)