Re: [PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-25 Thread Eelco Chaudron
On 24 Jun 2019, at 18:42, Andrii Nakryiko wrote: On Mon, Jun 24, 2019 at 2:37 AM Eelco Chaudron wrote: On 21 Jun 2019, at 21:13, Andrii Nakryiko wrote: On Fri, Jun 21, 2019 at 8:26 AM Eelco Chaudron wrote: When an AF_XDP application received X packets, it does not mean X frames can

Re: [PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-24 Thread Andrii Nakryiko
On Mon, Jun 24, 2019 at 2:37 AM Eelco Chaudron wrote: > > > > On 21 Jun 2019, at 21:13, Andrii Nakryiko wrote: > > > On Fri, Jun 21, 2019 at 8:26 AM Eelco Chaudron > > wrote: > >> > >> When an AF_XDP application received X packets, it does not mean X > >> frames can be stuffed into the producer r

Re: [PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-24 Thread Magnus Karlsson
On Mon, Jun 24, 2019 at 11:53 AM Eelco Chaudron wrote: > > > > On 21 Jun 2019, at 21:13, Andrii Nakryiko wrote: > > > On Fri, Jun 21, 2019 at 8:26 AM Eelco Chaudron > > wrote: > >> > >> When an AF_XDP application received X packets, it does not mean X > >> frames can be stuffed into the producer

Re: [PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-24 Thread Eelco Chaudron
On 21 Jun 2019, at 21:13, Andrii Nakryiko wrote: On Fri, Jun 21, 2019 at 8:26 AM Eelco Chaudron wrote: When an AF_XDP application received X packets, it does not mean X frames can be stuffed into the producer ring. To make it easier for AF_XDP applications this API allows them to check how

Re: [PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-21 Thread Andrii Nakryiko
On Fri, Jun 21, 2019 at 8:26 AM Eelco Chaudron wrote: > > When an AF_XDP application received X packets, it does not mean X > frames can be stuffed into the producer ring. To make it easier for > AF_XDP applications this API allows them to check how many frames can > be added into the ring. > > Si

[PATCH bpf-next] libbpf: add xsk_ring_prod__free() function

2019-06-21 Thread Eelco Chaudron
When an AF_XDP application received X packets, it does not mean X frames can be stuffed into the producer ring. To make it easier for AF_XDP applications this API allows them to check how many frames can be added into the ring. Signed-off-by: Eelco Chaudron --- tools/lib/bpf/xsk.h | 6 ++ 1