[PATCH net 2/2] net: xilinx: axienet: Check if Tx queue enabled

Gupta, Suraj Suraj.Gupta2 at amd.com
Sun Nov 3 23:08:23 PST 2024



> -----Original Message-----
> From: Jakub Kicinski <kuba at kernel.org>
> Sent: Monday, November 4, 2024 4:07 AM
> To: Gupta, Suraj <Suraj.Gupta2 at amd.com>
> Cc: Pandey, Radhey Shyam <radhey.shyam.pandey at amd.com>;
> andrew+netdev at lunn.ch; davem at davemloft.net; edumazet at google.com;
> pabeni at redhat.com; Simek, Michal <michal.simek at amd.com>;
> netdev at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-
> kernel at vger.kernel.org; git (AMD-Xilinx) <git at amd.com>; Katakam, Harini
> <harini.katakam at amd.com>
> Subject: Re: [PATCH net 2/2] net: xilinx: axienet: Check if Tx queue enabled
> 
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
> 
> 
> On Wed, 30 Oct 2024 11:55:33 +0530 Suraj Gupta wrote:
> > Check return value of netif_txq_maybe_stop() in transmit direction and
> > start dma engine only if queue is enabled.
> 
> The first patch makes sense, let me apply that one.
> But this one I don't understand - what is the problem you're trying to fix?
> netif_txq_maybe_stop() tries to stop the queue if the *next* packet may not fit in the
> queue. The currently processed packet is assumed to have already been queued.

I was under impression that it tries to stop if "current" packet may not fit in the queue. This check won't be required then, thanks for applying first patch.

Regards,
Suraj



More information about the linux-arm-kernel mailing list