Skip to content

Commit a495eba

Browse files
hexchainjasowang
authored andcommitted
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 <[email protected]> Reviewed-by: Zhang Chen <[email protected]> Signed-off-by: Jason Wang <[email protected]>
1 parent 034d00d commit a495eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebpf/ebpf_rss.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bool ebpf_rss_load(struct EBPFRSSContext *ctx)
4949
goto error;
5050
}
5151

52-
bpf_program__set_socket_filter(rss_bpf_ctx->progs.tun_rss_steering_prog);
52+
bpf_program__set_type(rss_bpf_ctx->progs.tun_rss_steering_prog, BPF_PROG_TYPE_SOCKET_FILTER);
5353

5454
if (rss_bpf__load(rss_bpf_ctx)) {
5555
trace_ebpf_error("eBPF RSS", "can not load RSS program");

0 commit comments

Comments
 (0)