Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Tariq Toukan" <tariqt@nvidia.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net] net/mlx5e: Fix the missing WQE count of large striding RQs
Date: Wed, 02 Dec 2026 12:20:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-245696@kernel.org> (raw)
In-Reply-To: <20261202121422.3422569-1-tariqt@nvidia.com>

> mlx5e_post_rx_mpwqes() counts the WQEs to post in a u8, and the RQ
> keeps its in-flight UMR counters in u8 fields:
> 
> 	missing = mlx5_wq_ll_missing(wq) - rq->mpwqe.umr_in_progress;
> 
> A striding RQ can have more than 256 WQEs. Its size is set in packets
> of up to the MTU, up to 8K of them, and a WQE holds fewer such packets
> as the MTU grows: with 4K pages and an MTU of 9000, a WQE holds 16 of
> them, so a ring of 8K packets takes 512 WQEs. An XSK RQ can exceed 256
> WQEs at any MTU: a WQE holds only 8 or 16 frames of an unaligned UMEM
> whose frame size is not a power of two, so a ring of 8K frames takes
> up to 1024 WQEs.
> 
> The first refill of such an RQ computes 511 missing WQEs, truncates
> that to 255 and posts them. From then on, the missing count is 256
> [ ... ]
> packets. In the TCP test, 192 connections on one RX queue send 1MB
> each at the same time. The XSK frames are of an unaligned UMEM.
> 
> Fixes: fd9b4be8002c ("net/mlx5e: RX, Support multiple outstanding UMR posts")
> Signed-off-by: Tariq Toukan <tariqt@nvidia.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202121422.3422569-1-tariqt@nvidia.com?part=1

      parent reply	other threads:[~2026-12-02 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:14 [PATCH net] net/mlx5e: Fix the missing WQE count of large striding RQs Tariq Toukan
2026-12-02 12:18 ` netdev-bot+sinfo
2026-12-02 12:20 ` sashiko-bot [this message]

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=sashiko-outbox-245696@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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