On Thu, Jul 2, 2020 at 1:04 PM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > Refactor the code a bit to extract bpf_link_get_by_id() helper. > It's similar to existing bpf_prog_by_id(). > > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andriin@xxxxxx> > include/linux/bpf.h | 1 + > kernel/bpf/syscall.c | 46 +++++++++++++++++++++++++++----------------- > 2 files changed, 29 insertions(+), 18 deletions(-) > [...]