Skip to content

xdp: fix hang while unregistering device bound to xdp socket

Ilya Maximets bpf lkml netdev xdp-newbies 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 1 replyApplied
  2. v52 patches 3 repliesSuperseded
  3. v42 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v31 patch7 repliesSuperseded
v21 patch3 repliesSuperseded
v11 patch3 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/2xdp: hold device for umem regardless of zero-copy modenet/xdp/xdp_umem.c+6 -50 replies
2/2xdp: fix hang while unregistering device bound to xdp socketinclude/net/xdp_sock.h net/xdp/xdp_umem.c net/xdp/xdp_umem.h +1 more+87 -160 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJonathan Lemon
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH bpf v6 0/2] xdp: fix hang while unregistering device bound to xdp socket

Version 6:

* Better names for socket state.

Version 5:

* Fixed incorrect handling of rtnl_lock.

Version 4:

* 'xdp_umem_clear_dev' exposed to be used while unregistering.
* Added XDP socket state to track if resources already unbinded.
* Splitted in two fixes.

Version 3:

* Declaration lines ordered from longest to shortest.
* Checking of event type moved to the top to avoid unnecessary locking.

Version 2:

* Completely re-implemented using netdev event handler.

Ilya Maximets (2):
xdp: hold device for umem regardless of zero-copy mode
xdp: fix hang while unregistering device bound to xdp socket

 include/net/xdp_sock.h |  5 +++
 net/xdp/xdp_umem.c     | 21 +++++-----
 net/xdp/xdp_umem.h     |  1 +
 net/xdp/xsk.c          | 87 ++++++++++++++++++++++++++++++++++++------
 4 files changed, 93 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.1