Re: [PATCH v3 bpf 3/3] libbpf: only create rx and tx XDP rings when necessary

2021-03-30 Thread Björn Töpel
On Tue, 30 Mar 2021 at 14:05, Ciara Loftus wrote: > > Prior to this commit xsk_socket__create(_shared) always attempted to create > the rx and tx rings for the socket. However this causes an issue when the > socket being setup is that which shares the fd with the UMEM. If a > previous call to this

[PATCH v3 bpf 3/3] libbpf: only create rx and tx XDP rings when necessary

2021-03-30 Thread Ciara Loftus
Prior to this commit xsk_socket__create(_shared) always attempted to create the rx and tx rings for the socket. However this causes an issue when the socket being setup is that which shares the fd with the UMEM. If a previous call to this function failed with this socket after the rings were set up