Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: bpf: Generalize data copying for percpu maps
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=998520

While adding support for the BPF_F_CPU and BPF_F_ALL_CPUS flags, the data
copying logic of the following percpu map types needs to be updated:

* percpu_array
* percpu_hash
* lru_percpu_hash
* percpu_cgroup_storage

Following Andrii’s suggestion[0], this patch refactors the data copying
logic by introducing two helpers:

* `bpf_percpu_copy_to_user()`
* `bpf_percpu_copy_from_user()`

This prepares the codebase for the upcoming CPU flag support.

[0] https://lore.kernel.org/bpf/[email protected]/

Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Leon Hwang <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: e4980fa
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=998520
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=998520 expired. Closing PR.

@kernel-patches-daemon-bpf-rc kernel-patches-daemon-bpf-rc bot deleted the series/998520=>bpf-next branch September 6, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants