Re: [PATCH net-next] mlxsw: spectrum_fid: use a dedicated list head pointer for sorted insert
From: patchwork-bot+netdevbpf
Date: Tue May 26 2026 - 21:10:43 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 25 May 2026 15:17:59 +0800 you wrote:
> mlxsw_sp_fid_port_vid_list_add() inserts into a list sorted by
> local_port. It walks the list to find the first entry with a
> larger local_port, then inserts the new entry before it:
>
> list_add_tail(&port_vid->list, &tmp_port_vid->list);
>
> If the loop falls through (the new local_port is the largest),
> tmp_port_vid runs off the end of the list. &tmp_port_vid->list
> then ends up at the list head itself (container_of() offsets
> cancel), and list_add_tail() inserts at the tail. So the code
> works today.
>
> [...]
Here is the summary with links:
- [net-next] mlxsw: spectrum_fid: use a dedicated list head pointer for sorted insert
https://git.kernel.org/netdev/net-next/c/6373d6fbc242
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html