[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aS14PnwjbFcD_J70@horms.kernel.org>
Date: Mon, 1 Dec 2025 11:13:02 +0000
From: Simon Horman <horms@...nel.org>
To: 2694439648@...com
Cc: andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, hailong.fan@...ngine.com,
netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, inux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: stmmac: Modify the judgment condition of "tx_avail"
from 1 to 2
On Mon, Dec 01, 2025 at 10:57:01AM +0800, 2694439648@...com wrote:
> From: "hailong.fan" <hailong.fan@...ngine.com>
>
> Under certain conditions, a WARN_ON will be triggered
> if avail equals 1.
>
> For example, when a VLAN packet is to send,
> stmmac_vlan_insert consumes one unit of space,
> and the data itself consumes another.
> actually requiring 2 units of space in total.
Hi,
I am wondering if there are other cases where an extra
descriptor is needed. And if so, can multiple such conditions
occur at the same time?
I am also wondering if the VLAN condition can be detected,
so a descriptor is only reserved for VLAN use if it will
actually be used for a VLAN.
And I think it would be worth noting how this problem was discovered
e.g. by inspection, using tooling (static analysis, AI, ...).
And how it has been tested e.g. On real HW, compile tested only.
As this is a fix for Networking code present in the net tree
it should be based on that tree. And targeted at that tree like this:
Subject: [PATCH net] ...
Also, as a fix for net, it should have a fixes tag.
Generally, this should denote the first patch where the problem would
manifest. In this case this seems to be a likely candidate:
Fixes: 30d932279dc2 ("net: stmmac: Add support for VLAN Insertion Offload")
The tag should go immediately above other tags, in this case your
Signed-off-by line, without any blank lines in between. And, like other
tags, it should not be line-wrapped.
For more information on the workflow for Networking changes please see:
https://docs.kernel.org/process/maintainer-netdev.html
>
> Signed-off-by: hailong.fan <hailong.fan@...ngine.com>
Powered by blists - more mailing lists