[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <83ffc316-6711-4ae4-ad10-917f678de331@linux.dev>
Date: Fri, 17 Oct 2025 13:21:54 +0100
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: "G Thomas, Rohan" <rohan.g.thomas@...era.com>,
Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <Jose.Abreu@...opsys.com>,
Rohan G Thomas <rohan.g.thomas@...el.com>,
Boon Khai Ng <boon.khai.ng@...era.com>
Cc: netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Matthew Gerlach <matthew.gerlach@...era.com>
Subject: Re: [PATCH net v3 2/3] net: stmmac: Consider Tx VLAN offload tag
length for maxSDU
On 17/10/2025 08:36, G Thomas, Rohan wrote:
> Hi All,
>
> On 10/17/2025 11:41 AM, Rohan G Thomas via B4 Relay wrote:
>> + sdu_len = skb->len;
>> /* Check if VLAN can be inserted by HW */
>> has_vlan = stmmac_vlan_insert(priv, skb, tx_q);
>> + if (has_vlan)
>> + sdu_len += VLAN_HLEN;
>> +
>> + if (priv->est && priv->est->enable &&
>> + priv->est->max_sdu[queue] &&
>> + skb->len > priv->est->max_sdu[queue]){
>
> I just noticed an issue with the reworked fix after sending the patch.
> The condition should be: sdu_len > priv->est->max_sdu[queue]
>
> I’ll send a corrected version, and will wait for any additional comments
> in the meantime.
Well, even though it's a copy of original code, it would be good to
improve some formatting and add a space at the end of if statement to
make it look like 'if () {'>
>> + priv->xstats.max_sdu_txq_drop[queue]++;
>> + goto max_sdu_err;
>> + }
>> entry = tx_q->cur_tx;
>> first_entry = entry;
>>
>
> Best Regards,
> Rohan
>
Powered by blists - more mailing lists