bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] Support UMEM chunk_size > PAGE_SIZE
@ 2023-03-19 19:56 Kal Conley
  2023-03-19 19:56 ` [PATCH bpf-next 1/3] xsk: " Kal Conley
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Kal Conley @ 2023-03-19 19:56 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, John Fastabend
  Cc: Kal Conley, netdev, bpf

This patchset adds AF_XDP support for chunk sizes > PAGE_SIZE.

The changes depend on the following commit recently applied to the bpf tree:
cc7df4813b149 ("xsk: Add missing overflow check in xdp_umem_reg")

Thanks to Magnus Karlsson for his initial feedback!

Kal Conley (3):
  xsk: Support UMEM chunk_size > PAGE_SIZE
  selftests: xsk: Use hugepages when umem->frame_size > PAGE_SIZE
  selftests: xsk: Add tests for 8K and 9K frame sizes

 include/net/xdp_sock.h                   |  1 +
 include/net/xdp_sock_drv.h               |  6 ++++
 include/net/xsk_buff_pool.h              |  4 ++-
 net/xdp/xdp_umem.c                       | 46 ++++++++++++++++++------
 net/xdp/xsk.c                            |  3 ++
 net/xdp/xsk_buff_pool.c                  | 16 ++++++---
 tools/testing/selftests/bpf/xskxceiver.c | 26 +++++++++++++-
 tools/testing/selftests/bpf/xskxceiver.h |  2 ++
 8 files changed, 88 insertions(+), 16 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-29 16:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 19:56 [PATCH bpf-next 0/3] Support UMEM chunk_size > PAGE_SIZE Kal Conley
2023-03-19 19:56 ` [PATCH bpf-next 1/3] xsk: " Kal Conley
2023-03-19 22:56   ` kernel test robot
2023-03-20  0:58   ` kernel test robot
2023-03-20 20:45   ` kernel test robot
2023-03-21  8:42   ` Magnus Karlsson
2023-03-29 16:03     ` Kal Cutter Conley
2023-03-21 10:48   ` Maciej Fijalkowski
2023-03-21 19:34     ` Jakub Kicinski
2023-03-29 15:40     ` Kal Cutter Conley
2023-03-19 19:56 ` [PATCH bpf-next 2/3] selftests: xsk: Use hugepages when umem->frame_size " Kal Conley
2023-03-19 19:56 ` [PATCH bpf-next 3/3] selftests: xsk: Add tests for 8K and 9K frame sizes Kal Conley
2023-03-21  8:45   ` Magnus Karlsson
2023-03-21  8:47     ` Magnus Karlsson
2023-03-29 10:22       ` Kal Cutter Conley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).