[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220629094007.827621-1-idosch@nvidia.com>
Date: Wed, 29 Jun 2022 12:39:57 +0300
From: Ido Schimmel <idosch@...dia.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, petrm@...dia.com, amcohen@...dia.com,
mlxsw@...dia.com, Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 00/10] mlxsw: Unified bridge conversion - part 5/6
This is the fifth part of the conversion of mlxsw to the unified bridge
model.
The previous part that was merged in commit d521bc0a0f7c ("Merge branch
'mlxsw-unified-bridge-conversion-part-4-6'") converted the flooding code
to use the new APIs of the unified bridge model. As part of this
conversion, the flooding code started accessing the port group table
(PGT) directly in order to allocate MID indexes and configure the ports
via which a packet needs to be replicated.
MDB entries in the device also make use of the PGT table, but the
related code has its own PGT allocator and does not make use of the
common core that was added in the previous patchset. This patchset
converts the MDB code to use the common PGT code.
The first nine patches prepare the MDB code for the conversion that is
performed by the last patch.
Amit Cohen (10):
mlxsw: Align PGT index to legacy bridge model
mlxsw: spectrum_switchdev: Rename MID structure
mlxsw: spectrum_switchdev: Rename MIDs list
mlxsw: spectrum_switchdev: Save MAC and FID as a key in 'struct
mlxsw_sp_mdb_entry'
mlxsw: spectrum_switchdev: Add support for maintaining hash table of
MDB entries
mlxsw: spectrum_switchdev: Add support for maintaining list of ports
per MDB entry
mlxsw: spectrum_switchdev: Implement mlxsw_sp_mc_mdb_entry_{init,
fini}()
mlxsw: spectrum_switchdev: Add support for getting and putting MDB
entry
mlxsw: spectrum_switchdev: Flush port from MDB entries according to
FID index
mlxsw: spectrum_switchdev: Convert MDB code to use PGT APIs
.../net/ethernet/mellanox/mlxsw/spectrum.h | 10 +-
.../ethernet/mellanox/mlxsw/spectrum_pgt.c | 16 +-
.../mellanox/mlxsw/spectrum_switchdev.c | 697 +++++++++++-------
3 files changed, 455 insertions(+), 268 deletions(-)
--
2.36.1
Powered by blists - more mailing lists