summaryrefslogtreecommitdiffstats
path: root/ebpf
diff options
context:
space:
mode:
authorHaochen Tong2022-05-27 21:06:58 +0200
committerJason Wang2022-07-06 05:39:09 +0200
commita495eba03c31c96d6a0817b13598ce2219326691 (patch)
treeb4eb8985f6c74e87d8fab963e36b085690e29fdf /ebpf
parente1000: set RX descriptor status in a separate operation (diff)
downloadqemu-a495eba03c31c96d6a0817b13598ce2219326691.tar.gz
qemu-a495eba03c31c96d6a0817b13598ce2219326691.tar.xz
qemu-a495eba03c31c96d6a0817b13598ce2219326691.zip
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@hexchain.org> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'ebpf')
-rw-r--r--ebpf/ebpf_rss.c2
1 files changed, 1 insertions, 1 deletions
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");