Commit 9c91d861 authored by Pu Lehui's avatar Pu Lehui Committed by Yang Yingliang
Browse files

bpf: Backport __BPF_FUNC_MAPPER and annotation from mainline

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4NI6R


CVE: NA

--------------------------------

BPF program call helper functions according to bpf_func_id.
Misorder id of helper function will destroy the consistency
of BPF program, making it unusable in other versions. Let's
backport __BPF_FUNC_MAPPER and the corresponding annotation
from mainline.

Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
Reviewed-by: default avatarKuohai Xu <xukuohai@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 3aa9ea1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment