Re: [PATCH bpf 2/3] libbpf: restore umem state after socket create failure

2021-03-26 Thread Magnus Karlsson
On Fri, Mar 26, 2021 at 3:56 PM Loftus, Ciara wrote: > > > > > On Wed, Mar 24, 2021 at 3:46 PM Ciara Loftus > > wrote: > > > > > > If the call to socket_create fails, the user may want to retry the > > > socket creation using the same umem. Ensure that the umem is in the > > > same state on exit

RE: [PATCH bpf 2/3] libbpf: restore umem state after socket create failure

2021-03-26 Thread Loftus, Ciara
> > On Wed, Mar 24, 2021 at 3:46 PM Ciara Loftus > wrote: > > > > If the call to socket_create fails, the user may want to retry the > > socket creation using the same umem. Ensure that the umem is in the > > same state on exit if the call failed by restoring the _save pointers > > and not unmapp

Re: [PATCH bpf 2/3] libbpf: restore umem state after socket create failure

2021-03-26 Thread Magnus Karlsson
On Wed, Mar 24, 2021 at 3:46 PM Ciara Loftus wrote: > > If the call to socket_create fails, the user may want to retry the > socket creation using the same umem. Ensure that the umem is in the > same state on exit if the call failed by restoring the _save pointers > and not unmapping the set of um

[PATCH bpf 2/3] libbpf: restore umem state after socket create failure

2021-03-24 Thread Ciara Loftus
If the call to socket_create fails, the user may want to retry the socket creation using the same umem. Ensure that the umem is in the same state on exit if the call failed by restoring the _save pointers and not unmapping the set of umem rings if those pointers are non NULL. Fixes: 2f6324a3937f (