Re: [PATCH bpf 3/3] libbpf: ignore return values of setsockopt for XDP rings.

2021-03-26 Thread Magnus Karlsson
On Wed, Mar 24, 2021 at 3:46 PM Ciara Loftus wrote: > > During xsk_socket__create the XDP_RX_RING and XDP_TX_RING setsockopts > are called to create the rx and tx rings for the AF_XDP socket. If the ring > has already been set up, the setsockopt will return an error. However, > in the event of a f

[PATCH bpf 3/3] libbpf: ignore return values of setsockopt for XDP rings.

2021-03-24 Thread Ciara Loftus
During xsk_socket__create the XDP_RX_RING and XDP_TX_RING setsockopts are called to create the rx and tx rings for the AF_XDP socket. If the ring has already been set up, the setsockopt will return an error. However, in the event of a failure during xsk_socket__create(_shared) after the rings have