Skip to content

mlxsw: Preparations for restructuring

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12mlxsw: spectrum_buffer: Reduce scope of shared buffer structdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c+68 -590 replies
2/12mlxsw: spectrum_router: Reduce scope of router structdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+130 -1140 replies
3/12mlxsw: spectrum_switchdev: Reduce scope of bridge structdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +1 more+69 -370 replies
4/12mlxsw: spectrum_router: Move RIFs array to its rightful placedrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +1 more+35 -240 replies
5/12mlxsw: spectrum_router: Move FIB notification block to router structdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+10 -80 replies
6/12mlxsw: spectrum_router: Initialize RIFs in a separate functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+30 -180 replies
7/12mlxsw: spectrum_switchdev: Remove redundant checkdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+0 -90 replies
8/12mlxsw: spectrum_switchdev: Don't batch VLAN operationsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+121 -1390 replies
9/12mlxsw: spectrum_switchdev: Don't batch STP operationsdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+17 -420 replies
10/12mlxsw: spectrum_switchdev: Don't batch learning operationsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+7 -200 replies
11/12mlxsw: spectrum: Move PVID code to appropriate placedrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+46 -580 replies
12/12mlxsw: spectrum: Default ports to non-virtual modedrivers/net/ethernet/mellanox/mlxsw/spectrum.c+8 -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 00/12] mlxsw: Preparations for restructuring

From: Jiri Pirko <[email protected]>

This patchset doesn't introduce any functional changes and merely meant to make the code base more receptive for upcoming restructuring.

The first six patches mainly shuffle code in order to reduce the scope of structs that shouldn't be defined in the main driver header. Most of them will be later expanded, so it makes sense to correctly place them now.

The last patches mostly simplify bridge-related functions, so that they could be more easily modified later on.

Ido Schimmel (12):
mlxsw: spectrum_buffer: Reduce scope of shared buffer struct
mlxsw: spectrum_router: Reduce scope of router struct
mlxsw: spectrum_switchdev: Reduce scope of bridge struct
mlxsw: spectrum_router: Move RIFs array to its rightful place
mlxsw: spectrum_router: Move FIB notification block to router struct
mlxsw: spectrum_router: Initialize RIFs in a separate function
mlxsw: spectrum_switchdev: Remove redundant check
mlxsw: spectrum_switchdev: Don't batch VLAN operations
mlxsw: spectrum_switchdev: Don't batch STP operations
mlxsw: spectrum_switchdev: Don't batch learning operations
mlxsw: spectrum: Move PVID code to appropriate place
mlxsw: spectrum: Default ports to non-virtual mode

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     | 118 +++++-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     | 131 +------
 .../net/ethernet/mellanox/mlxsw/spectrum_buffers.c |  73 +++-
 .../net/ethernet/mellanox/mlxsw/spectrum_dpipe.c   |  17 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 289 +++++++++-----
 .../net/ethernet/mellanox/mlxsw/spectrum_router.h  |   2 +
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   | 415 ++++++++-------------
 7 files changed, 529 insertions(+), 516 deletions(-)
Signature · 1 line
2.9.3