From: Jakub Kicinski <kuba@kernel.org>
To: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: <davem@davemloft.net>, <pabeni@redhat.com>, <edumazet@google.com>,
<andrew+netdev@lunn.ch>, <netdev@vger.kernel.org>,
<poros@redhat.com>, <arkadiusz.kubalewski@intel.com>,
<przemyslaw.kitszel@intel.com>, <horms@kernel.org>,
<aleksandr.loktionov@intel.com>, <pmenzel@molgen.mpg.de>,
<sx.rinitha@intel.com>
Subject: Re: [PATCH net 1/3] i40e: keep q_vectors array in sync with channel count changes
Date: Fri, 5 Jun 2026 16:39:34 -0700 [thread overview]
Message-ID: <20260605163934.547c7bdd@kernel.org> (raw)
In-Reply-To: <25ca3a21-7d29-47e8-a0fb-5fbb7ddfea99@intel.com>
On Fri, 5 Jun 2026 11:01:19 -0700 Tony Nguyen wrote:
> > Should the new err_lump label, and the existing err_vsi exits from the
> > two allocation steps above, instead unwind through the err_rings block
> > (unregister_netdev / free_netdev / i40e_devlink_destroy_port /
> > i40e_aq_delete_element) the way i40e_vsi_setup()'s err_msix path does?
> >
> > The pre-patch code had the same defective err_vsi target for the
> > qp_pile and arrays paths, but the patch adds two new failure points
> > (the unconditional q_vectors kzalloc and the new
> > i40e_vsi_setup_vectors() call) that route into it during reset
> > rebuild, where vsi->netdev is already registered.
>
> This does seem valid, but as mentioned by Sashiko the pre-patch code has
> the same target/issue. There's a recent submission [1], with changes
> requested, that should cover this. Did you want to take this now or wait
> and have it sent with this other one?
Hm. I convinced myself yesterday that the old code did _not_
have the issue because it was pass false as the second arg to
i40e_vsi_{alloc,free}_arrays() ? Good chance that I misread,
it's tricky code. As much as I would love to apply this to prevent
the deadlock in NIPA - let's wait for the follow up. I'll pick up
the other two patches from this series off the list.
next prev parent reply other threads:[~2026-06-05 23:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 22:55 [PATCH net 0/3][pull request] Intel Wired LAN Driver Updates 2026-06-02 (i40e, ice, idpf) Tony Nguyen
2026-06-02 22:55 ` [PATCH net 1/3] i40e: keep q_vectors array in sync with channel count changes Tony Nguyen
2026-06-04 1:27 ` Jakub Kicinski
2026-06-05 18:01 ` Tony Nguyen
2026-06-05 23:39 ` Jakub Kicinski [this message]
2026-06-02 22:55 ` [PATCH net 2/3] ice: fix missing priority callbacks for U.FL DPLL pins Tony Nguyen
2026-06-02 22:55 ` [PATCH net 3/3] idpf: fix mailbox capability for set device clock time Tony Nguyen
2026-06-05 23:50 ` [PATCH net 0/3][pull request] Intel Wired LAN Driver Updates 2026-06-02 (i40e, ice, idpf) patchwork-bot+netdevbpf
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=20260605163934.547c7bdd@kernel.org \
--to=kuba@kernel.org \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pmenzel@molgen.mpg.de \
--cc=poros@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=sx.rinitha@intel.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