Re: [PATCH net-next] bpf: expose prog id for cls_bpf and act_bpf

2017-06-21 Thread Martin KaFai Lau
On Wed, Jun 21, 2017 at 08:16:11PM +0200, Daniel Borkmann wrote: > In order to be able to retrieve the attached programs from cls_bpf > and act_bpf, we need to expose the prog ids via netlink so that > an application can later on get an fd based on the id through the > BPF_PROG_GET_FD_BY_ID command

Re: [PATCH net-next] bpf: expose prog id for cls_bpf and act_bpf

2017-06-21 Thread David Miller
From: Daniel Borkmann Date: Wed, 21 Jun 2017 20:16:11 +0200 > In order to be able to retrieve the attached programs from cls_bpf > and act_bpf, we need to expose the prog ids via netlink so that > an application can later on get an fd based on the id through the > BPF_PROG_GET_FD_BY_ID command, a

[PATCH net-next] bpf: expose prog id for cls_bpf and act_bpf

2017-06-21 Thread Daniel Borkmann
In order to be able to retrieve the attached programs from cls_bpf and act_bpf, we need to expose the prog ids via netlink so that an application can later on get an fd based on the id through the BPF_PROG_GET_FD_BY_ID command, and dump related prog info via BPF_OBJ_GET_INFO_BY_FD command for bpf(2