From: Hariprasad Kelam <hkelam@marvell.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Sunil Goutham <sgoutham@marvell.com>,
Geetha sowjanya <gakula@marvell.com>,
"Subbaraya Sundeep" <sbhatta@marvell.com>,
Bharat Bhushan <bbhushan2@marvell.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Tomasz Duszynski <tduszynski@marvell.com>,
Simon Horman <horms@kernel.org>
Subject: Re: [net PatchV3] Octeontx2-vf: Fix max packet length errors
Date: Wed, 23 Jul 2025 22:44:35 +0530 [thread overview]
Message-ID: <aIEYe/lXNAsvv24l@test-OptiPlex-Tower-Plus-7010> (raw)
In-Reply-To: <316e5fb7-7f45-4564-9354-e50305f6f3fd@lunn.ch>
On 2025-07-21 at 19:28:05, Andrew Lunn (andrew@lunn.ch) wrote:
> On Mon, Jul 21, 2025 at 02:28:15PM +0530, Hariprasad Kelam wrote:
> > Implement packet length validation before submitting packets to
> > the hardware to prevent MAXLEN_ERR. Increment tx_dropped counter
> > on failure.
>
> Sorry, i did not look at previous versions of this patch, so i might
> be asking a question some other Reviewer already asked.
>
> How expensive is MAXLEN_ERR? What do you need to do when it happens?
>
On error case, hardware raises the queue interrupts about max lenth errors
goes to hang state. Driver needs to execute reset to come out of the state.
> I would _guess_ that if ndev->mtu is set correctly, and any change to
> it validated, you are going to get very few packets which are too big.
>
> Is it better to introduce this test on the hot path which effects
> every single packet, or just deal with MAXLEN_ERR if it ever actually
> happens, so leaving the hot path optimised for the common case?
>
> Maybe you could include something about this in the commit message?
>
ACK will update the commit description.
> Andrew
>
prev parent reply other threads:[~2025-07-23 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 8:58 [net PatchV3] Octeontx2-vf: Fix max packet length errors Hariprasad Kelam
2025-07-21 13:58 ` Andrew Lunn
2025-07-23 17:14 ` Hariprasad Kelam [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=aIEYe/lXNAsvv24l@test-OptiPlex-Tower-Plus-7010 \
--to=hkelam@marvell.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=tduszynski@marvell.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