[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [qemu-xen staging-4.16] ebpf: replace deprecated bpf_program__set_socket_filter
commit 62dd49f2172fb7dfe8d4223bfa45aede05155328 Author: Haochen Tong <i@xxxxxxxxxxxx> AuthorDate: Sat May 28 03:06:58 2022 +0800 Commit: Anthony PERARD <anthony.perard@xxxxxxxxx> CommitDate: Thu Oct 20 14:39:06 2022 +0100 ebpf: replace deprecated bpf_program__set_socket_filter bpf_program__set_<TYPE> functions have been deprecated since libbpf 0.8. Replace with the equivalent bpf_program__set_type call to avoid a deprecation warning. Signed-off-by: Haochen Tong <i@xxxxxxxxxxxx> Reviewed-by: Zhang Chen <chen.zhang@xxxxxxxxx> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx> (cherry picked from commit a495eba03c31c96d6a0817b13598ce2219326691) --- ebpf/ebpf_rss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpf/ebpf_rss.c b/ebpf/ebpf_rss.c index 118c68da83..cee658c158 100644 --- a/ebpf/ebpf_rss.c +++ b/ebpf/ebpf_rss.c @@ -49,7 +49,7 @@ bool ebpf_rss_load(struct EBPFRSSContext *ctx) goto error; } - bpf_program__set_socket_filter(rss_bpf_ctx->progs.tun_rss_steering_prog); + bpf_program__set_type(rss_bpf_ctx->progs.tun_rss_steering_prog, BPF_PROG_TYPE_SOCKET_FILTER); if (rss_bpf__load(rss_bpf_ctx)) { trace_ebpf_error("eBPF RSS", "can not load RSS program"); -- generated by git-patchbot for /home/xen/git/qemu-xen.git#staging-4.16
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |