From: Saeed Mahameed <saeed@kernel.org>
To: "David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>,
netdev@vger.kernel.org, Tariq Toukan <tariqt@nvidia.com>
Subject: [pull request][net-next 00/15] mlx5 updates 2023-10-10
Date: Tue, 10 Oct 2023 23:12:15 -0700 [thread overview]
Message-ID: <20231011061230.11530-1-saeed@kernel.org> (raw)
From: Saeed Mahameed <saeedm@nvidia.com>
This series provides misc updates to mlx5 driver.
For more information please see tag log below.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
The following changes since commit e5f061d5e340fefc663cacfe8f42f149d55bdb53:
net: dsa: realtek: rtl8365mb: replace deprecated strncpy with ethtool_sprintf (2023-10-10 20:05:23 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2023-10-10
for you to fetch changes up to f1cb181d05116d7791398e1541f0a12376d78c40:
net/mlx5e: Allow IPsec soft/hard limits in bytes (2023-10-10 23:10:55 -0700)
----------------------------------------------------------------
mlx5-updates-2023-10-10
1) Adham Faris, Increase max supported channels number to 256
2) Leon Romanovsky, Allow IPsec soft/hard limits in bytes
3) Shay Drory, Replace global mlx5_intf_lock with
HCA devcom component lock
4) Wei Zhang, Optimize SF creation flow
During SF creation, HCA state gets changed from INVALID to
IN_USE step by step. Accordingly, FW sends vhca event to
driver to inform about this state change asynchronously.
Each vhca event is critical because all related SW/FW
operations are triggered by it.
Currently there is only a single mlx5 general event handler
which not only handles vhca event but many other events.
This incurs huge bottleneck because all events are forced
to be handled in serial manner.
Moreover, all SFs share same table_lock which inevitably
impacts each other when they are created in parallel.
This series will solve this issue by:
1. A dedicated vhca event handler is introduced to eliminate
the mutual impact with other mlx5 events.
2. Max FW threads work queues are employed in the vhca event
handler to fully utilize FW capability.
3. Redesign SF active work logic to completely remove
table_lock.
With above optimization, SF creation time is reduced by 25%,
i.e. from 80s to 60s when creating 100 SFs.
Patches summary:
Patch 1 - implement dedicated vhca event handler with max FW
cmd threads of work queues.
Patch 2 - remove table_lock by redesigning SF active work
logic.
----------------------------------------------------------------
Adham Faris (5):
net/mlx5e: Refactor rx_res_init() and rx_res_free() APIs
net/mlx5e: Refactor mlx5e_rss_set_rxfh() and mlx5e_rss_get_rxfh()
net/mlx5e: Refactor mlx5e_rss_init() and mlx5e_rss_free() API's
net/mlx5e: Preparations for supporting larger number of channels
net/mlx5e: Increase max supported channels number to 256
Jinjie Ruan (1):
net/mlx5: Use PTR_ERR_OR_ZERO() to simplify code
Leon Romanovsky (1):
net/mlx5e: Allow IPsec soft/hard limits in bytes
Lukas Bulwahn (1):
net/mlx5: fix config name in Kconfig parameter documentation
Shay Drory (3):
net/mlx5: Avoid false positive lockdep warning by adding lock_class_key
net/mlx5: Refactor LAG peer device lookout bus logic to mlx5 devcom
net/mlx5: Replace global mlx5_intf_lock with HCA devcom component lock
Wei Zhang (2):
net/mlx5: Parallelize vhca event handling
net/mlx5: Redesign SF active work to remove table_lock
Yu Liao (1):
net/mlx5e: Use PTR_ERR_OR_ZERO() to simplify code
Yue Haibing (1):
net/mlx5: Remove unused declaration
.../ethernet/mellanox/mlx5/kconfig.rst | 2 +-
drivers/net/ethernet/mellanox/mlx5/core/dev.c | 105 ++-------------
drivers/net/ethernet/mellanox/mlx5/core/en.h | 5 +-
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h | 1 -
drivers/net/ethernet/mellanox/mlx5/core/en/rqt.c | 32 +++--
drivers/net/ethernet/mellanox/mlx5/core/en/rqt.h | 9 +-
drivers/net/ethernet/mellanox/mlx5/core/en/rss.c | 144 ++++++++++++++++-----
drivers/net/ethernet/mellanox/mlx5/core/en/rss.h | 20 ++-
.../net/ethernet/mellanox/mlx5/core/en/rx_res.c | 105 ++++++++-------
.../net/ethernet/mellanox/mlx5/core/en/rx_res.h | 12 +-
.../ethernet/mellanox/mlx5/core/en_accel/ipsec.c | 23 ++--
.../mellanox/mlx5/core/en_accel/ipsec_fs.c | 24 ++--
.../mellanox/mlx5/core/en_accel/ipsec_rxtx.h | 1 -
.../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 +-
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c | 8 +-
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 32 ++---
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 27 ++--
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 16 ++-
drivers/net/ethernet/mellanox/mlx5/core/events.c | 5 -
.../net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c | 24 ++--
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c | 47 +++++--
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h | 1 +
.../net/ethernet/mellanox/mlx5/core/lag/mpesw.c | 9 +-
.../net/ethernet/mellanox/mlx5/core/lag/port_sel.c | 10 +-
.../net/ethernet/mellanox/mlx5/core/lib/devcom.c | 25 ++++
.../net/ethernet/mellanox/mlx5/core/lib/devcom.h | 5 +
drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h | 1 -
drivers/net/ethernet/mellanox/mlx5/core/main.c | 25 ++++
.../net/ethernet/mellanox/mlx5/core/mlx5_core.h | 14 +-
.../net/ethernet/mellanox/mlx5/core/sf/dev/dev.c | 85 ++++++++----
.../ethernet/mellanox/mlx5/core/sf/vhca_event.c | 69 +++++++++-
.../ethernet/mellanox/mlx5/core/sf/vhca_event.h | 3 +
.../mellanox/mlx5/core/steering/dr_types.h | 4 -
include/linux/mlx5/driver.h | 16 +--
34 files changed, 544 insertions(+), 367 deletions(-)
next reply other threads:[~2023-10-11 6:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 6:12 Saeed Mahameed [this message]
2023-10-11 6:12 ` [net-next 01/15] net/mlx5: Parallelize vhca event handling Saeed Mahameed
2023-10-11 6:12 ` [net-next 02/15] net/mlx5: Redesign SF active work to remove table_lock Saeed Mahameed
2023-10-11 6:12 ` [net-next 03/15] net/mlx5: Avoid false positive lockdep warning by adding lock_class_key Saeed Mahameed
2023-10-11 6:12 ` [net-next 04/15] net/mlx5: Refactor LAG peer device lookout bus logic to mlx5 devcom Saeed Mahameed
2023-10-11 6:12 ` [net-next 05/15] net/mlx5: Replace global mlx5_intf_lock with HCA devcom component lock Saeed Mahameed
2023-10-11 6:12 ` [net-next 06/15] net/mlx5: Remove unused declaration Saeed Mahameed
2023-10-11 6:12 ` [net-next 07/15] net/mlx5: fix config name in Kconfig parameter documentation Saeed Mahameed
2023-10-11 6:12 ` [net-next 08/15] net/mlx5: Use PTR_ERR_OR_ZERO() to simplify code Saeed Mahameed
2023-10-11 6:12 ` [net-next 09/15] net/mlx5e: " Saeed Mahameed
2023-10-11 6:12 ` [net-next 10/15] net/mlx5e: Refactor rx_res_init() and rx_res_free() APIs Saeed Mahameed
2023-10-11 6:12 ` [net-next 11/15] net/mlx5e: Refactor mlx5e_rss_set_rxfh() and mlx5e_rss_get_rxfh() Saeed Mahameed
2023-10-11 6:12 ` [net-next 12/15] net/mlx5e: Refactor mlx5e_rss_init() and mlx5e_rss_free() API's Saeed Mahameed
2023-10-11 6:12 ` [net-next 13/15] net/mlx5e: Preparations for supporting larger number of channels Saeed Mahameed
2023-10-11 6:12 ` [net-next 14/15] net/mlx5e: Increase max supported channels number to 256 Saeed Mahameed
2023-10-11 6:12 ` [net-next 15/15] net/mlx5e: Allow IPsec soft/hard limits in bytes Saeed Mahameed
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=20231011061230.11530-1-saeed@kernel.org \
--to=saeed@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.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).