Re: [PATCH v2 bpf-next 1/5] devmap: Formalize map value as a named struct

2020-05-28 Thread David Ahern
On 5/28/20 1:01 AM, Andrii Nakryiko wrote: > On Wed, May 27, 2020 at 5:15 PM David Ahern wrote: >> >> From: David Ahern >> >> Add 'struct devmap_val' to the bpf uapi to formalize the >> expected values that can be passed in for a DEVMAP. >> Update devmap code to use the struct. >> >> Signed-off-b

Re: [PATCH v2 bpf-next 1/5] devmap: Formalize map value as a named struct

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:15 PM David Ahern wrote: > > From: David Ahern > > Add 'struct devmap_val' to the bpf uapi to formalize the > expected values that can be passed in for a DEVMAP. > Update devmap code to use the struct. > > Signed-off-by: David Ahern > --- > include/uapi/linux/bpf.h

[PATCH v2 bpf-next 1/5] devmap: Formalize map value as a named struct

2020-05-27 Thread David Ahern
From: David Ahern Add 'struct devmap_val' to the bpf uapi to formalize the expected values that can be passed in for a DEVMAP. Update devmap code to use the struct. Signed-off-by: David Ahern --- include/uapi/linux/bpf.h | 5 kernel/bpf/devmap.c| 43