Skip to content

mlxsw: SPAN cleanups

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: spectrum: Fix a coding style nitdrivers/net/ethernet/mellanox/mlxsw/spectrum.c+2 -20 replies
2/3mlxsw: spectrum: Drop struct span_entry.useddrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+2 -50 replies
3/3mlxsw: spectrum: Move SPAN code to separate moduledrivers/net/ethernet/mellanox/mlxsw/Makefile drivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h +3 more+433 -3480 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/3] mlxsw: SPAN cleanups

From: Jiri Pirko <[email protected]>

In patch one of this short series, a misplaced pointer star is moved to the correct place.

In the second patch, we observe that if SPAN entries carry their reference count anyway, it's redundant to also carry a "used" flag.

In the third patch, SPAN support code is moved to a separate module.

Petr Machata (3):
mlxsw: spectrum: Fix a coding style nit
mlxsw: spectrum: Drop struct span_entry.used
mlxsw: spectrum: Move SPAN code to separate module

 drivers/net/ethernet/mellanox/mlxsw/Makefile       |   2 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     | 322 +------------------
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |  30 +-
 .../mellanox/mlxsw/spectrum_acl_flex_actions.c     |   1 +
 .../net/ethernet/mellanox/mlxsw/spectrum_span.c    | 356 +++++++++++++++++++++
 .../net/ethernet/mellanox/mlxsw/spectrum_span.h    |  73 +++++
 6 files changed, 433 insertions(+), 351 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
 create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
Signature · 1 line
2.14.3