From: Hengqi Chen <hengqi.chen@gmail.com>
To: David Marchand <david.marchand@redhat.com>
Cc: dev@dpdk.org, thomas@monjalon.net, stable@dpdk.org,
Maxime Coquelin <maxime.coquelin@redhat.com>,
Chenbo Xia <chenbox@nvidia.com>, Baoyuan Li <updoing@sina.com>
Subject: Re: [PATCH] net/virtio: revert Tx free threshold fix
Date: Wed, 9 Jul 2025 09:34:28 +0800 [thread overview]
Message-ID: <CAEyhmHRsNi4ed7dTMswGBBm5dX4aQ7+p1cfmGsSvBVXciOKQCg@mail.gmail.com> (raw)
In-Reply-To: <20250708142305.3636707-1-david.marchand@redhat.com>
On Tue, Jul 8, 2025 at 10:23 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> This fix introduced a performance regression.
>
> The problem is under investigation, but we are too close to the release
> (and the virtio/vhost maintainer is not available) to get a fix before
> the v25.07 release.
>
> Revert this change for now, we can revisit during v25.11.
>
Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
> Bugzilla ID: 1747
> Fixes: 3e3c7f3fa5ac ("net/virtio: fix check of threshold for Tx freeing")
> Cc: stable@dpdk.org
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> drivers/net/virtio/virtio_rxtx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
> index ab97f03d7d..edecd2011f 100644
> --- a/drivers/net/virtio/virtio_rxtx.c
> +++ b/drivers/net/virtio/virtio_rxtx.c
> @@ -1873,7 +1873,7 @@ virtio_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
>
> nb_used = virtqueue_nused(vq);
>
> - if (likely(vq->vq_free_cnt < vq->vq_free_thresh))
> + if (likely(nb_used > vq->vq_nentries - vq->vq_free_thresh))
> virtio_xmit_cleanup(vq, nb_used);
>
> for (nb_tx = 0; nb_tx < nb_pkts; nb_tx++) {
> --
> 2.50.0
>
next prev parent reply other threads:[~2025-07-09 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 14:23 David Marchand
2025-07-09 1:34 ` Hengqi Chen [this message]
2025-07-09 9:31 ` David Marchand
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=CAEyhmHRsNi4ed7dTMswGBBm5dX4aQ7+p1cfmGsSvBVXciOKQCg@mail.gmail.com \
--to=hengqi.chen@gmail.com \
--cc=chenbox@nvidia.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=maxime.coquelin@redhat.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
--cc=updoing@sina.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).