Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-26 Thread Daniel Borkmann
On 5/25/20 2:56 PM, Toke Høiland-Jørgensen wrote: Jesper Dangaard Brouer writes: On Mon, 25 May 2020 14:15:32 +0200 Toke Høiland-Jørgensen wrote: David Ahern writes: On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: David Ahern writes: Implementation of Daniel's proposal for allowing

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Toke Høiland-Jørgensen
Jesper Dangaard Brouer writes: > On Mon, 25 May 2020 14:15:32 +0200 > Toke Høiland-Jørgensen wrote: > >> David Ahern writes: >> >> > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: >> >> David Ahern writes: >> >> >> >>> Implementation of Daniel's proposal for allowing DEVMAP entries to

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Jesper Dangaard Brouer
On Mon, 25 May 2020 14:15:32 +0200 Toke Høiland-Jørgensen wrote: > David Ahern writes: > > > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: > >> David Ahern writes: > >> > >>> Implementation of Daniel's proposal for allowing DEVMAP entries to be > >>> a device index, program id pair. D

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Toke Høiland-Jørgensen
David Ahern writes: > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: >> David Ahern writes: >> >>> Implementation of Daniel's proposal for allowing DEVMAP entries to be >>> a device index, program id pair. Daniel suggested an fd to specify the >>> program, but that seems odd to me that you i

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-22 Thread David Ahern
On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: > David Ahern writes: > >> Implementation of Daniel's proposal for allowing DEVMAP entries to be >> a device index, program id pair. Daniel suggested an fd to specify the >> program, but that seems odd to me that you insert the value as an fd, but

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-22 Thread Toke Høiland-Jørgensen
David Ahern writes: > Implementation of Daniel's proposal for allowing DEVMAP entries to be > a device index, program id pair. Daniel suggested an fd to specify the > program, but that seems odd to me that you insert the value as an fd, but > read it back as an id since the fd can be closed. Whi

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-22 Thread Jesper Dangaard Brouer
On Thu, 21 May 2020 19:05:22 -0600 David Ahern wrote: > Implementation of Daniel's proposal for allowing DEVMAP entries to be > a device index, program id pair. Daniel suggested an fd to specify the > program, but that seems odd to me that you insert the value as an fd, but > read it back as an i

[PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-21 Thread David Ahern
Implementation of Daniel's proposal for allowing DEVMAP entries to be a device index, program id pair. Daniel suggested an fd to specify the program, but that seems odd to me that you insert the value as an fd, but read it back as an id since the fd can be closed. David Ahern (4): bpf: Handle 8-