Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread Andrii Nakryiko
On Thu, May 28, 2020 at 3:40 PM David Ahern wrote: > > On 5/28/20 1:01 AM, Andrii Nakryiko wrote: > > > > Please cc b...@vger.kernel.org in the future for patches related to BPF > > in general. > > added to my script > > > > >> include/linux/bpf.h| 5 +++ > >> include/uapi/linux/bpf.

Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread David Ahern
On 5/28/20 1:01 AM, Andrii Nakryiko wrote: > > Please cc b...@vger.kernel.org in the future for patches related to BPF > in general. added to my script > >> include/linux/bpf.h| 5 +++ >> include/uapi/linux/bpf.h | 5 +++ >> kernel/bpf/devmap.c| 79 +

Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread Toke Høiland-Jørgensen
David Ahern writes: > From: David Ahern > > Add BPF_XDP_DEVMAP attach type for use with programs associated with a > DEVMAP entry. > > Allow DEVMAPs to associate a program with a device entry by adding > a bpf_prog_fd to 'struct devmap_val'. Values read show the program > id, so the fd and id ar

Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:17 PM David Ahern wrote: > > From: David Ahern > > Add BPF_XDP_DEVMAP attach type for use with programs associated with a > DEVMAP entry. > > Allow DEVMAPs to associate a program with a device entry by adding > a bpf_prog_fd to 'struct devmap_val'. Values read show the p

[PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-27 Thread David Ahern
From: David Ahern Add BPF_XDP_DEVMAP attach type for use with programs associated with a DEVMAP entry. Allow DEVMAPs to associate a program with a device entry by adding a bpf_prog_fd to 'struct devmap_val'. Values read show the program id, so the fd and id are a union. The program associated w