Re: [PATCH bpf-next 1/5] bpf: Add bpf_cpumask_first_and() kfunc

From: Yonghong Song
Date: Mon Jun 12 2023 - 11:20:22 EST




On 6/9/23 8:50 PM, David Vernet wrote:
We currently provide bpf_cpumask_first(), bpf_cpumask_any(), and
bpf_cpumask_any_and() kfuncs. bpf_cpumask_any() and
bpf_cpumask_any_and() are confusing misnomers in that they actually just
call cpumask_first() and cpumask_first_and() respectively.

We'll replace them with bpf_cpumask_any_distribute() and
bpf_cpumask_any_distribute_and() kfuncs in a subsequent patch, so let's
ensure feature parity by adding a bpf_cpumask_first_and() kfunc to
account for bpf_cpumask_any_and() being removed.

Signed-off-by: David Vernet <void@xxxxxxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>