On Sat, Oct 2, 2021 at 9:31 AM Hengqi Chen <hengqi.chen@xxxxxxxxx> wrote: > > BPF objects are not re-loadable after unload. User are expected to use > bpf_object__close() to unload and free up resources in one operation. > No need to expose bpf_object__unload() as a public API, deprecate it.[0] > Add bpf_object_unload() as an alias to bpf_object__unload() and replace > all bpf_object__unload() to avoid compilation errors. > > [0] Closes: https://github.com/libbpf/libbpf/issues/290 > > Signed-off-by: Hengqi Chen <hengqi.chen@xxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>