• Roman Gushchin's avatar
    libbpf: add ability to guess program type based on section name · 583c9009
    Roman Gushchin authored
    The bpf_prog_load() function will guess program type if it's not
    specified explicitly. This functionality will be used to implement
    loading of different programs without asking a user to specify
    the program type. In first order it will be used by bpftool.
    Signed-off-by: default avatarRoman Gushchin <guro@fb.com>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
    Cc: Martin KaFai Lau <kafai@fb.com>
    Cc: Quentin Monnet <quentin.monnet@netronome.com>
    Cc: David Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    583c9009
libbpf.c 41.2 KB