bpf_object__load_xattr is deprecated as of v0.8+; remove it
in favor of bpf_object__load.
Signed-off-by: David Ahern <dsahern@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
static int load_bpf_object(struct bpf_cfg_in *cfg)
{
- struct bpf_object_load_attr attr = {};
struct bpf_program *p, *prog = NULL;
struct bpf_object *obj;
char root_path[PATH_MAX];
if (ret)
goto unload_obj;
- attr.obj = obj;
- if (cfg->verbose)
- attr.log_level = 2;
-
- ret = bpf_object__load_xattr(&attr);
+ ret = bpf_object__load(obj);
if (ret)
goto unload_obj;