From: Petr Machata <petrm@nvidia.com>
To: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
<netdev@vger.kernel.org>
Cc: Ido Schimmel <idosch@nvidia.com>, Petr Machata <petrm@nvidia.com>,
"Amit Cohen" <amcohen@nvidia.com>, <mlxsw@nvidia.com>
Subject: [PATCH net-next 0/6] mlxsw: Refactor reference counting code
Date: Fri, 26 Jan 2024 19:58:25 +0100 [thread overview]
Message-ID: <cover.1706293430.git.petrm@nvidia.com> (raw)
Amit Cohen writes:
This set converts all reference counters defined as 'unsigned int' to
refcount_t type. The reference counting of LAGs can be simplified, so first
refactor the related code and then change the type of the reference
counter.
Patch set overview:
Patches #1-#4 are preparations for LAG refactor
Patch #5 refactors LAG code and change the type of reference counter
Patch #6 converts the remaining reference counters in mlxsw driver
Amit Cohen (6):
mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure
mlxsw: spectrum: Remove mlxsw_sp_lag_get()
mlxsw: spectrum: Query max_lag once
mlxsw: spectrum: Search for free LAD ID once
mlxsw: spectrum: Refactor LAG create and destroy code
mlxsw: Use refcount_t for reference counting
.../mellanox/mlxsw/core_acl_flex_actions.c | 16 +-
.../mellanox/mlxsw/core_acl_flex_keys.c | 9 +-
.../net/ethernet/mellanox/mlxsw/spectrum.c | 164 ++++++++++--------
.../net/ethernet/mellanox/mlxsw/spectrum.h | 15 +-
.../ethernet/mellanox/mlxsw/spectrum_acl.c | 11 +-
.../mellanox/mlxsw/spectrum_acl_tcam.c | 17 +-
.../ethernet/mellanox/mlxsw/spectrum_router.c | 15 +-
.../mellanox/mlxsw/spectrum_switchdev.c | 8 +-
8 files changed, 132 insertions(+), 123 deletions(-)
--
2.43.0
next reply other threads:[~2024-01-26 18:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-26 18:58 Petr Machata [this message]
2024-01-26 18:58 ` [PATCH net-next 1/6] mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure Petr Machata
2024-01-29 19:52 ` Simon Horman
2024-01-26 18:58 ` [PATCH net-next 2/6] mlxsw: spectrum: Remove mlxsw_sp_lag_get() Petr Machata
2024-01-29 19:52 ` Simon Horman
2024-01-26 18:58 ` [PATCH net-next 3/6] mlxsw: spectrum: Query max_lag once Petr Machata
2024-01-29 19:53 ` Simon Horman
2024-01-26 18:58 ` [PATCH net-next 4/6] mlxsw: spectrum: Search for free LAD ID once Petr Machata
2024-01-29 19:53 ` Simon Horman
2024-01-26 18:58 ` [PATCH net-next 5/6] mlxsw: spectrum: Refactor LAG create and destroy code Petr Machata
2024-01-29 19:53 ` Simon Horman
2024-01-26 18:58 ` [PATCH net-next 6/6] mlxsw: Use refcount_t for reference counting Petr Machata
2024-01-29 19:54 ` Simon Horman
2024-01-30 14:50 ` [PATCH net-next 0/6] mlxsw: Refactor reference counting code patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1706293430.git.petrm@nvidia.com \
--to=petrm@nvidia.com \
--cc=amcohen@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=mlxsw@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).