From: Simon Horman <horms@kernel.org>
To: Jijie Shao <shaojijie@huawei.com>
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, andrew+netdev@lunn.ch, shenjian15@huawei.com,
liuyonglong@huawei.com, chenhao418@huawei.com,
yangshuaisong@h-partners.com, ningwei15@huawei.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 3/3] net: hns3: use txqueue parameter directly in ndo_tx_timeout
Date: Fri, 7 Aug 2026 10:48:14 +0100 [thread overview]
Message-ID: <20260807094814.GI51943@horms.kernel.org> (raw)
In-Reply-To: <cdfb3eb1-2b11-4162-a875-7e39a356b2b0@huawei.com>
On Fri, Aug 07, 2026 at 03:31:13PM +0800, Jijie Shao wrote:
>
> on 2026/8/6 19:39, Jijie Shao wrote:
> >
> > on 2026/8/6 0:52, Simon Horman wrote:
...
> Hi Simon,
>
> I'd like to note that the actual v2 implementation differs slightly
> from what I described in my previous reply:
>
> 1. The netif_xmit_timeout_ms() re-check is kept, not dropped.
> After discussion with colleagues, we decided to preserve the
> existing behaviour: if the stall has cleared by the time the
> callback runs, no reset is requested. This keeps the semantics
> consistent with the code before this patch.
>
> 2. The "no netdev TX timeout queue found" branch is also kept,
> now guarding against txqueue >= num_tqps.
>
> 3. The bounds check is changed from ndev->num_tx_queues to
> h->kinfo.num_tqps in this patch rather than a separate bugfix.
> The OOB has not been encountered in practice, but since the
> validation is already being rewritten here, folding the fix
> in avoids an artificial split.
>
> v2 will be sent shortly.
Thanks for the notes, and your earlier response. They are very helpful.
prev parent reply other threads:[~2026-08-07 9:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 13:09 [PATCH net-next 0/3] net: hns3: some cleanups for hns3 driver Jijie Shao
2026-08-04 13:09 ` [PATCH net-next 1/3] net: hns3: set msg->desc to NULL after kfree in hclge_query_reg_info() Jijie Shao
2026-08-05 16:52 ` Simon Horman
2026-08-06 7:32 ` Jijie Shao
2026-08-06 11:26 ` Simon Horman
2026-08-04 13:09 ` [PATCH net-next 2/3] net: hns3: add missing const qualifier to hclge_log_error() reg parameter Jijie Shao
2026-08-05 16:52 ` Simon Horman
2026-08-06 7:48 ` Jijie Shao
2026-08-06 11:21 ` Simon Horman
2026-08-04 13:09 ` [PATCH net-next 3/3] net: hns3: use txqueue parameter directly in ndo_tx_timeout Jijie Shao
2026-08-05 16:52 ` Simon Horman
2026-08-06 11:39 ` Jijie Shao
2026-08-07 7:31 ` Jijie Shao
2026-08-07 9:48 ` Simon Horman [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=20260807094814.GI51943@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=chenhao418@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuyonglong@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=ningwei15@huawei.com \
--cc=pabeni@redhat.com \
--cc=shaojijie@huawei.com \
--cc=shenjian15@huawei.com \
--cc=yangshuaisong@h-partners.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.