Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-18 Thread Alexei Starovoitov
On Mon, Dec 17, 2018 at 10:12:33AM +0100, Magnus Karlsson wrote: > On Fri, Dec 14, 2018 at 9:25 PM Alexei Starovoitov > wrote: > > > > On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > > > This commit adds AF_XDP support to libbpf. The main reason for > > > this is to facilitate w

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-17 Thread Magnus Karlsson
On Fri, Dec 14, 2018 at 9:25 PM Alexei Starovoitov wrote: > > On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > > This commit adds AF_XDP support to libbpf. The main reason for > > this is to facilitate writing applications that use AF_XDP by offering > > higher-level APIs that hi

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-14 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > This commit adds AF_XDP support to libbpf. The main reason for > this is to facilitate writing applications that use AF_XDP by offering > higher-level APIs that hide many of the details of the AF_XDP > uapi. This is in the same vein

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-13 Thread Daniel Borkmann
On 12/13/2018 10:06 AM, Magnus Karlsson wrote: > On Thu, Dec 13, 2018 at 7:24 AM Alexei Starovoitov > wrote: >> On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: >>> diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map >>> index cd02cd4..ae4cc0d 100644 >>> --- a/tools/li

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-13 Thread Magnus Karlsson
On Thu, Dec 13, 2018 at 7:24 AM Alexei Starovoitov wrote: > > On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > > diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map > > index cd02cd4..ae4cc0d 100644 > > --- a/tools/lib/bpf/libbpf.map > > +++ b/tools/lib/bpf/libbpf.ma

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map > index cd02cd4..ae4cc0d 100644 > --- a/tools/lib/bpf/libbpf.map > +++ b/tools/lib/bpf/libbpf.map > @@ -121,6 +121,15 @@ LIBBPF_0.0.1 { > libbpf_prog_typ

[PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-12 Thread Magnus Karlsson
This commit adds AF_XDP support to libbpf. The main reason for this is to facilitate writing applications that use AF_XDP by offering higher-level APIs that hide many of the details of the AF_XDP uapi. This is in the same vein as libbpf facilitates XDP adoption by offering easy-to-use higher level