]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Replace get_next_cpu() with cpumask_next_wrap()
authorFushuai Wang <wangfushuai@baidu.com>
Mon, 18 Aug 2025 03:23:44 +0000 (11:23 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 18 Aug 2025 13:11:02 +0000 (15:11 +0200)
commitd87fdb1f27d7b1f3309bba00955f0aa1cd19b33e
tree4b756443e1d94f846ab835498c6f21e43f5658c0
parent12741630350c6ba250ffd480dbb0bbab7e8ac80a
bpf: Replace get_next_cpu() with cpumask_next_wrap()

The get_next_cpu() function was only used in one place to find
the next possible CPU, which can be replaced by cpumask_next_wrap().

Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250818032344.23229-1-wangfushuai@baidu.com
kernel/bpf/bpf_lru_list.c