From: Thomas Monjalon <thomas@monjalon.net>
To: Gregory Etelson <getelson@nvidia.com>
Cc: dev@dpdk.org, mkashani@nvidia.com,
Dariusz Sosnowski <dsosnowski@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
Bing Zhao <bingz@nvidia.com>, Ori Kam <orika@nvidia.com>,
Suanming Mou <suanmingm@nvidia.com>,
Matan Azrad <matan@nvidia.com>,
Michael Baum <michaelba@nvidia.com>,
Raslan Darawsheh <rasland@nvidia.com>
Subject: Re: [PATCH] net/mlx5: fix external Rx and Tx queues access
Date: Mon, 08 Sep 2025 23:29:48 +0200 [thread overview]
Message-ID: <1834226.VLH7GnMWUR@thomas> (raw)
In-Reply-To: <07562abd-18cf-4080-82d1-3d98b3608d52@nvidia.com>
18/08/2025 08:32, Raslan Darawsheh:
> On 31/07/2025 9:08 AM, Gregory Etelson wrote:
> > mlx5_ext_rxq_get() and mlx5_ext_txq_get() functions did not return
> > NULL value if query index was not referencing external queue.
> >
> > As a result, calling functions did not expect the NULL on return.
It is not clear what is the problem.
> > External Rx queue:
> >
> > - In mlx5_ext_rxq_get() remove assert and return NULL if a queue index
> > does not point to a valid external queue.
> >
> > - In mlx5_ext_rxq_verify() validate that probed queue index references
> > a valid extern queue.
> >
> > External Tx queue:
> >
> > - In mlx5_ext_txq_get() remove assert and return NULL if a queue index
> > does not point to a valid external queue.
> >
> > - In mlx5_ext_txq_verify() validate that probed queue index references
> > a valid extern queue.
> >
> > Fixes: 311b17e669ab ("net/mlx5: support queue/RSS actions for external Rx queue")
> >
> > Signed-off-by: Gregory Etelson <getelson@nvidia.com>
> > Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
>
> Patch applied to next-net-mlx,
The patch is returning NULL but it is not handled in calling functions.
Thus MinGW compiler detects a problem:
In function 'mlx5_ext_rxq_ref',
inlined from 'mlx5_rxqs_ref' at ../../dpdk/drivers/net/mlx5/mlx5_rxq.c:2303:8:
../../dpdk/lib/eal/include/rte_stdatomic.h:155:9: error: '__atomic_fetch_add_4' writing 4 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
155 | __atomic_fetch_add(ptr, val, memorder)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../dpdk/drivers/net/mlx5/mlx5_rxq.c:2215:9: note: in expansion of macro 'rte_atomic_fetch_add_explicit'
2215 | rte_atomic_fetch_add_explicit(&rxq->refcnt, 1, rte_memory_order_relaxed);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'mlx5_rxqs_ref':
cc1: note: destination object is likely at address zero
I dropped this patch while pulling next-net-mlx into main.
Please provide a new version of the patch addressing these issues.
Thanks
prev parent reply other threads:[~2025-09-08 21:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 6:08 Gregory Etelson
2025-08-18 6:32 ` Raslan Darawsheh
2025-09-08 21:29 ` Thomas Monjalon [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=1834226.VLH7GnMWUR@thomas \
--to=thomas@monjalon.net \
--cc=bingz@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=getelson@nvidia.com \
--cc=matan@nvidia.com \
--cc=michaelba@nvidia.com \
--cc=mkashani@nvidia.com \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
--cc=suanmingm@nvidia.com \
--cc=viacheslavo@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).