Re: [PATCH bpf-next] xsk: simplify AF_XDP socket teardown

2018-12-19 Thread Daniel Borkmann
On 12/19/2018 01:09 PM, bjorn.to...@gmail.com wrote: > From: Björn Töpel > > Prior this commit, when the struct socket object was being released, > the UMEM did not have its reference count decreased. Instead, this was > done in the struct sock sk_destruct function. > > There is no reason to kee

[PATCH bpf-next] xsk: simplify AF_XDP socket teardown

2018-12-19 Thread bjorn . topel
From: Björn Töpel Prior this commit, when the struct socket object was being released, the UMEM did not have its reference count decreased. Instead, this was done in the struct sock sk_destruct function. There is no reason to keep the UMEM reference around when the socket is being orphaned, so i