From: Saeed Mahameed <saeed@kernel.org>
To: "David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, Saeed Mahameed <saeedm@nvidia.com>
Subject: [pull request][net-next 00/15] mlx5 updates 2022-03-17
Date: Thu, 17 Mar 2022 11:54:09 -0700 [thread overview]
Message-ID: <20220317185424.287982-1-saeed@kernel.org> (raw)
From: Saeed Mahameed <saeedm@nvidia.com>
Hi Dave, Hi Jakub,
This series adds some updates to mlx5 driver:
1) Preparation for XDP Multi-buffer support
2) Memory consumption reduction in SW steering component of the 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 1abea24af42c35c6eb537e4402836e2cde2a5b13:
selftests: net: fix array_size.cocci warning (2022-03-17 15:21:16 +0100)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2022-03-17
for you to fetch changes up to 770c9a3a01af178a90368a78c75eb91707c7233c:
net/mlx5: Remove unused fill page array API function (2022-03-17 11:51:58 -0700)
----------------------------------------------------------------
mlx5-updates-2022-03-17
1) From Maxim Mikityanskiy,
Datapath improvements in preparation for XDP multi buffer
This series contains general improvements for the datapath that are
useful for the upcoming XDP multi buffer support:
a. Non-linear legacy RQ: validate MTU for robustness, build the linear
part of SKB over the first hardware fragment (instead of copying the
packet headers), adjust headroom calculations to allow enabling headroom
in the non-linear mode (useful for XDP multi buffer).
b. XDP: do the XDP program test before function call, optimize
parameters of mlx5e_xdp_handle.
2) From Rongwei Liu, DR, reduce steering memory usage
Currently, mlx5 driver uses mlx5_htbl/chunk/ste to organize
steering logic. However there is a little memory waste.
This update targets to reduce steering memory footprint by:
a. Adjust struct member layout.
b. Remove duplicated indicator by using simple functions call.
With 500k TX rules(3 ste) plus 500k RX rules(6 stes), these patches
can save around 17% memory.
3) Three cleanup commits at the end of this series.
----------------------------------------------------------------
Maxim Mikityanskiy (5):
net/mlx5e: Validate MTU when building non-linear legacy RQ fragments info
net/mlx5e: Add headroom only to the first fragment in legacy RQ
net/mlx5e: Build SKB in place over the first fragment in non-linear legacy RQ
net/mlx5e: Drop the len output parameter from mlx5e_xdp_handle
net/mlx5e: Drop cqe_bcnt32 from mlx5e_skb_from_cqe_mpwrq_linear
Paul Blakey (1):
net/mlx5: CT: Remove extra rhashtable remove on tuple entries
Rongwei Liu (6):
net/mlx5: DR, Adjust structure member to reduce memory hole
net/mlx5: DR, Remove mr_addr rkey from struct mlx5dr_icm_chunk
net/mlx5: DR, Remove icm_addr from mlx5dr_icm_chunk to reduce memory
net/mlx5: DR, Remove num_of_entries byte_size from struct mlx5_dr_icm_chunk
net/mlx5: DR, Remove 4 members from mlx5dr_ste_htbl to reduce memory
net/mlx5: DR, Remove hw_ste from mlx5dr_ste to reduce memory
Tariq Toukan (3):
net/mlx5e: RX, Test the XDP program existence out of the handler
net/mlx5: Remove unused exported contiguous coherent buffer allocation API
net/mlx5: Remove unused fill page array API function
drivers/net/ethernet/mellanox/mlx5/core/alloc.c | 60 -----------
.../net/ethernet/mellanox/mlx5/core/en/params.c | 69 ++++++++++---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 1 -
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 7 +-
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h | 2 +-
.../net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 16 +--
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 111 ++++++++++++---------
.../mellanox/mlx5/core/steering/dr_action.c | 12 ++-
.../ethernet/mellanox/mlx5/core/steering/dr_dbg.c | 14 ++-
.../mellanox/mlx5/core/steering/dr_icm_pool.c | 57 ++++++++---
.../mellanox/mlx5/core/steering/dr_matcher.c | 18 ++--
.../ethernet/mellanox/mlx5/core/steering/dr_rule.c | 71 +++++++------
.../ethernet/mellanox/mlx5/core/steering/dr_send.c | 34 ++++---
.../ethernet/mellanox/mlx5/core/steering/dr_ste.c | 105 ++++++++++---------
.../mellanox/mlx5/core/steering/dr_table.c | 18 ++--
.../mellanox/mlx5/core/steering/dr_types.h | 31 +++---
include/linux/mlx5/driver.h | 4 -
17 files changed, 338 insertions(+), 292 deletions(-)
next reply other threads:[~2022-03-17 18:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 18:54 Saeed Mahameed [this message]
2022-03-17 18:54 ` [net-next 01/15] net/mlx5e: Validate MTU when building non-linear legacy RQ fragments info Saeed Mahameed
2022-03-18 11:00 ` patchwork-bot+netdevbpf
2022-03-17 18:54 ` [net-next 02/15] net/mlx5e: Add headroom only to the first fragment in legacy RQ Saeed Mahameed
2022-03-17 18:54 ` [net-next 03/15] net/mlx5e: Build SKB in place over the first fragment in non-linear " Saeed Mahameed
2022-03-17 18:54 ` [net-next 04/15] net/mlx5e: RX, Test the XDP program existence out of the handler Saeed Mahameed
2022-03-17 18:54 ` [net-next 05/15] net/mlx5e: Drop the len output parameter from mlx5e_xdp_handle Saeed Mahameed
2022-03-17 18:54 ` [net-next 06/15] net/mlx5e: Drop cqe_bcnt32 from mlx5e_skb_from_cqe_mpwrq_linear Saeed Mahameed
2022-03-17 18:54 ` [net-next 07/15] net/mlx5: DR, Adjust structure member to reduce memory hole Saeed Mahameed
2022-03-17 18:54 ` [net-next 08/15] net/mlx5: DR, Remove mr_addr rkey from struct mlx5dr_icm_chunk Saeed Mahameed
2022-03-17 18:54 ` [net-next 09/15] net/mlx5: DR, Remove icm_addr from mlx5dr_icm_chunk to reduce memory Saeed Mahameed
2022-03-17 18:54 ` [net-next 10/15] net/mlx5: DR, Remove num_of_entries byte_size from struct mlx5_dr_icm_chunk Saeed Mahameed
2022-03-17 18:54 ` [net-next 11/15] net/mlx5: DR, Remove 4 members from mlx5dr_ste_htbl to reduce memory Saeed Mahameed
2022-03-17 18:54 ` [net-next 12/15] net/mlx5: DR, Remove hw_ste from mlx5dr_ste " Saeed Mahameed
2022-03-17 18:54 ` [net-next 13/15] net/mlx5: CT: Remove extra rhashtable remove on tuple entries Saeed Mahameed
2022-03-17 18:54 ` [net-next 14/15] net/mlx5: Remove unused exported contiguous coherent buffer allocation API Saeed Mahameed
2022-03-17 18:54 ` [net-next 15/15] net/mlx5: Remove unused fill page array API function 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=20220317185424.287982-1-saeed@kernel.org \
--to=saeed@kernel.org \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=saeedm@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).