Re: [PATCH net-next v2] libbpf: add xsk_ring_prod__nb_free() function

2019-06-26 Thread Eelco Chaudron
Please ignore, this was supposed to be bpf-next not net-next :( On 26 Jun 2019, at 10:27, 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

[PATCH net-next v2] libbpf: add xsk_ring_prod__nb_free() function

2019-06-26 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 --- v1 -> v2 - Renamed xsk_ring_prod_