ebpf: replace deprecated bpf_program__set_socket_filter
authorHaochen Tong <i@hexchain.org>
Fri, 27 May 2022 19:06:58 +0000 (03:06 +0800)
committerJason Wang <jasowang@redhat.com>
Wed, 6 Jul 2022 03:39:09 +0000 (11:39 +0800)
commita495eba03c31c96d6a0817b13598ce2219326691
treeb4eb8985f6c74e87d8fab963e36b085690e29fdf
parent034d00d4858161e1d4cff82d8d230bce874a04d3
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>
ebpf/ebpf_rss.c