Re: [PATCH v2 bpf 1/2] libbpf: Ignore non function pointer member in struct_ops

2021-02-12 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (refs/heads/master): On Thu, 11 Feb 2021 18:10:30 -0800 you wrote: > When libbpf initializes the kernel's struct_ops in > "bpf_map__init_kern_struct_ops()", it enforces all > pointer types must be a function pointer and rejects > others. It turn

[PATCH v2 bpf 1/2] libbpf: Ignore non function pointer member in struct_ops

2021-02-11 Thread Martin KaFai Lau
When libbpf initializes the kernel's struct_ops in "bpf_map__init_kern_struct_ops()", it enforces all pointer types must be a function pointer and rejects others. It turns out to be too strict. For example, when directly using "struct tcp_congestion_ops" from vmlinux.h, it has a "struct module *o