Re: [PATCH v4] bpf/verifier: optimize ID mapping reset in states_equal

From: patchwork-bot+netdevbpf

Date: Tue Jan 20 2026 - 16:26:50 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Tue, 20 Jan 2026 10:32:34 +0800 you wrote:
> Currently, reset_idmap_scratch() performs a 4.7KB memset() in every
> states_equal() call. Optimize this by using a counter to track used
> ID mappings, replacing the O(N) memset() with an O(1) reset and
> bounding the search loop in check_ids().
>
> Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Signed-off-by: Qiliang Yuan <realwujing@xxxxxxxxx>
>
> [...]

Here is the summary with links:
- [v4] bpf/verifier: optimize ID mapping reset in states_equal
https://git.kernel.org/bpf/bpf-next/c/f81c07a6e98e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html