Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Tariq Toukan <tariqt@nvidia.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Eric Dumazet <edumazet@google.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Gal Pressman <gal@nvidia.com>,
	Leon Romanovsky <leonro@nvidia.com>,
	Dragos Tatulea <dtatulea@nvidia.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Leon Romanovsky <leon@kernel.org>,
	netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-kernel@vger.kernel.org, Moshe Shemesh <moshe@nvidia.com>,
	Mark Bloch <mbloch@nvidia.com>
Subject: Re: [PATCH net-next] net/mlx5e: TX, Utilize WQ fragments edge for multi-packet WQEs
Date: Sun, 23 Mar 2025 16:02:50 +0000	[thread overview]
Message-ID: <20250323160250.GQ892515@horms.kernel.org> (raw)
In-Reply-To: <1742391746-118647-1-git-send-email-tariqt@nvidia.com>

On Wed, Mar 19, 2025 at 03:42:26PM +0200, Tariq Toukan wrote:
> For simplicity reasons, the driver avoids crossing work queue fragment
> boundaries within the same TX WQE (Work-Queue Element). Until today, as
> the number of packets in a TX MPWQE (Multi-Packet WQE) descriptor is not
> known in advance, the driver pre-prepared contiguous memory for the
> largest possible WQE. For this, when getting too close to the fragment
> edge, having no room for the largest WQE possible, the driver was
> filling the fragment remainder with NOP descriptors, aligning the next
> descriptor to the beginning of the next fragment.
> 
> Generating and handling these NOPs wastes resources, like: CPU cycles,
> work-queue entries fetched to the device, and PCI bandwidth.
> 
> In this patch, we replace this NOPs filling mechanism in the TX MPWQE
> flow. Instead, we utilize the remaining entries of the fragment with a
> TX MPWQE. If this room turns out to be too small, we simply open an
> additional descriptor starting at the beginning of the next fragment.
> 
> Performance benchmark:
> uperf test, single server against 3 clients.
> TCP multi-stream, bidir, traffic profile "2x350B read, 1400B write".
> Bottleneck is in inbound PCI bandwidth (device POV).
> 
> +---------------+------------+------------+--------+
> |               | Before     | After      |        |
> +---------------+------------+------------+--------+
> | BW            | 117.4 Gbps | 121.1 Gbps | +3.1%  |
> +---------------+------------+------------+--------+
> | tx_packets    | 15 M/sec   | 15.5 M/sec | +3.3%  |
> +---------------+------------+------------+--------+
> | tx_nops       | 3  M/sec   | 0          | -100%  |
> +---------------+------------+------------+--------+
> 
> Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>

Reviewed-by: Simon Horman <horms@kernel.org>


  reply	other threads:[~2025-03-23 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 13:42 [PATCH net-next] net/mlx5e: TX, Utilize WQ fragments edge for multi-packet WQEs Tariq Toukan
2025-03-23 16:02 ` Simon Horman [this message]
2025-03-25 14:30 ` 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=20250323160250.GQ892515@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=leonro@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=moshe@nvidia.com \
    --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