All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Machata <petrm@nvidia.com>
To: Ziheng Wei <zihengw03@163.com>
Cc: Ido Schimmel <idosch@nvidia.com>, Petr Machata <petrm@nvidia.com>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] mlxsw: spectrum_switchdev: fix wrong list member in flood rollback
Date: Mon, 30 Nov 2026 12:22:12 +0100	[thread overview]
Message-ID: <87fqwiva1n.fsf@pmachata.org> (raw)
In-Reply-To: <20261130103229.1383713-1-zihengw03@163.com> (Ziheng Wei's message of "Mon, 30 Nov 2026 18:32:29 +0800")

Ziheng Wei <zihengw03@163.com> writes:

> mlxsw_sp_bridge_vlans_flood_set() inserts and walks entries on
> bridge_vlan->port_vlan_list via mlxsw_sp_port_vlan->bridge_vlan_node,
> but its err_fid_flood_set rollback path instead uses the list member in
> list_for_each_entry_continue_reverse().
>
> Use bridge_vlan_node so rollback computes the proper container address
> and walks the same list as the forward loop.
>
> Found by LLM-assisted static analysis. Compile-tested on x86_64 with
> CONFIG_MLXSW_SPECTRUM=m; no hardware test.
>
> Fixes: a6f43b1dad80 ("mlxsw: spectrum_switchdev: Simplify mlxsw_sp_port_mc_disabled_set()")
> Signed-off-by: Ziheng Wei <zihengw03@163.com>

Thanks for the patch! The issue is no regression though. The commit this
is patching (itself a fix of a previously-erroneous behavior) introduced
no regression. Previously, not even the forward loop was done, much less
the rollback. Therefore please resend for net-next.

Reviewed-by: Petr Machata <petrm@nvidia.com>

pw-bot: rejected

  reply	other threads:[~2026-11-30 11:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 10:32 [PATCH net] mlxsw: spectrum_switchdev: fix wrong list member in flood rollback Ziheng Wei
2026-11-30 11:22 ` Petr Machata [this message]
2026-11-30 13:41   ` Ziheng Wei

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=87fqwiva1n.fsf@pmachata.org \
    --to=petrm@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=zihengw03@163.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.