aboutsummaryrefslogtreecommitdiff
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorXu Kuohai <xukuohai@huawei.com>2024-11-12 22:58:48 +0800
committerAlexei Starovoitov <ast@kernel.org>2024-11-12 17:13:46 -0800
commit821a3fa32bbe3bc0fa23b3189325d3720a49a24c (patch)
treeefceb534694ed620a1852a4ee3744b6ec8e1ccd3 /include/linux/bpf.h
parentbd9d9b48eb1814ad761cce45774a18d95c33803c (diff)
downloadlinux-821a3fa32bbe3bc0fa23b3189325d3720a49a24c.tar.gz
linux-821a3fa32bbe3bc0fa23b3189325d3720a49a24c.tar.bz2
linux-821a3fa32bbe3bc0fa23b3189325d3720a49a24c.zip
bpf: Use function pointers count as struct_ops links count
Only function pointers in a struct_ops structure can be linked to bpf progs, so set the links count to the function pointers count, instead of the total members count in the structure. Suggested-by: Martin KaFai Lau <martin.lau@linux.dev> Signed-off-by: Xu Kuohai <xukuohai@huawei.com> Link: https://lore.kernel.org/r/20241112145849.3436772-3-xukuohai@huaweicloud.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions