[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <n6sgvidgswqc456fo7tizxsqeq5vjwiqnef3mfr5fgifcnkdcp@3ntalkm56cr7>
Date: Sat, 16 Aug 2025 09:05:40 +0000
From: Dragos Tatulea <dtatulea@...dia.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: almasrymina@...gle.com, asml.silence@...il.com,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>, cratiu@...dia.com,
tariqt@...dia.com, parav@...dia.com, Christoph Hellwig <hch@...radead.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC net-next v3 7/7] net: devmem: allow binding on rx queues
with same MA devices
On Fri, Aug 15, 2025 at 10:24:33AM -0700, Jakub Kicinski wrote:
> On Fri, 15 Aug 2025 14:03:48 +0300 Dragos Tatulea wrote:
> > + rxq_dma_dev = netdev_queue_get_dma_dev(netdev, rxq_idx);
> > + /* Multi-PF netdev queues can belong to different DMA devoces.
Just saw the "devoces" typo. Will fix this too.
> > + * Block this case.
> > + */
> > + if (rxq_dma_dev && dma_dev && rxq_dma_dev != dma_dev) {
>
> Why rxq_dma_dev ? 🤔️
> Don't we want to error out if the first queue gave us a DMA dev but the
> second gave us a NULL ?
>
Hmm, yes... I didn't take this case into account. Will fix.
> > + NL_SET_ERR_MSG(extack, "Can't bind to queues from different dma devices");
>
> _FMT the conflicting queue IDs into this?
Sure. Will print the last dma_dev index and the current rxq_dma_dev index.
Thanks,
Dragos
Powered by blists - more mailing lists