Thread (9 messages) flat view 9 messages, 4 authors, 2019-08-15

Re: [PATCH bpf-next v4 1/2] xsk: remove AF_XDP socket from map when the socket is released

From: Jonathan Lemon <hidden>
Date: 2019-08-02 18:35:42
Also in: bpf


On 2 Aug 2019, at 1:11, Björn Töpel wrote:
From: Björn Töpel <redacted>

When an AF_XDP socket is released/closed the XSKMAP still holds a
reference to the socket in a "released" state. The socket will still
use the netdev queue resource, and block newly created sockets from
attaching to that queue, but no user application can access the
fill/complete/rx/tx queues. This results in that all applications need
to explicitly clear the map entry from the old "zombie state"
socket. This should be done automatically.

In this patch, the sockets tracks, and have a reference to, which maps
it resides in. When the socket is released, it will remove itself from
all maps.

Suggested-by: Bruce Richardson <redacted>
Signed-off-by: Björn Töpel <redacted>
Reviewed-by: Jonathan Lemon <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help