Skip to content

AF_XDP follow-up patches, uapi and cleanups

Björn Töpel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8xsk: remove rebind supportnet/xdp/xsk.c+9 -210 replies
2/8xsk: fill hole in struct sockaddr_xdpinclude/uapi/linux/if_xdp.h+1 -10 replies
3/8xsk: proper queue id check at bindnet/xdp/xsk.c+7 -10 replies
4/8xsk: remove explicit ring structure from uapiinclude/uapi/linux/if_xdp.h net/xdp/xsk.c net/xdp/xsk_queue.h+68 -220 replies
5/8samples/bpf: adapt xdpsock to the new uapisamples/bpf/xdpsock_user.c+76 -470 replies
6/8xsk: add missing write- and data-dependency barriernet/xdp/xsk.c+9 -50 replies
7/8xsk: simplified umem setupnet/xdp/xdp_umem.c net/xdp/xdp_umem.h net/xdp/xsk.c+51 -550 replies
8/8xsk: convert atomic_t to refcount_tnet/xdp/xdp_umem.c net/xdp/xdp_umem.h+4 -40 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by.

PatchJesper Dangaard Brouer
1/8
2/8
3/8T-b
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/8] AF_XDP follow-up patches, uapi and cleanups

From: Björn Töpel <[email protected]>

This the second follow-up set. The first four patches are uapi changes:

* Removing rebind support
* Getting rid of structure hole
* Removing explicit cache line alignment
* Stricter bind checks

The last patches do some cleanups, where the umem and refcount_t changes were suggested by Daniel.

* Add a missing write-barrier and use READ_ONCE for data-dependencies
* Clean up umem and do proper locking
* Convert atomic_t to refcount_t

Björn Töpel (7):
xsk: remove rebind support
xsk: fill hole in struct sockaddr_xdp
xsk: remove explicit ring structure from uapi samples/bpf: adapt xdpsock to the new uapi
xsk: add missing write- and data-dependency barrier
xsk: simplified umem setup
xsk: convert atomic_t to refcount_t

Magnus Karlsson (1):
xsk: proper queue id check at bind

 include/uapi/linux/if_xdp.h |  46 ++++++++---------
 net/xdp/xdp_umem.c          |  85 +++++++++++++++---------------
 net/xdp/xdp_umem.h          |   5 +-
 net/xdp/xsk.c               | 105 +++++++++++++++++++++++--------------
 net/xdp/xsk_queue.h         |  17 ++++++
 samples/bpf/xdpsock_user.c  | 123 +++++++++++++++++++++++++++-----------------
 6 files changed, 225 insertions(+), 156 deletions(-)
Signature · 1 line
2.14.1