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

2019-07-08 Thread Eelco Chaudron
On 6 Jul 2019, at 11:57, Magnus Karlsson wrote: On Fri, Jul 5, 2019 at 4:35 PM Daniel Borkmann wrote: On 07/03/2019 02:52 PM, 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

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

2019-07-06 Thread Magnus Karlsson
On Fri, Jul 5, 2019 at 4:35 PM Daniel Borkmann wrote: > > On 07/03/2019 02:52 PM, 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 chec

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

2019-07-05 Thread Daniel Borkmann
On 07/03/2019 02:52 PM, 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. > > Signed-off-b