Skip to content

net: consolidate devmem net_iov freelist and DMA handling

Stanislav Fomichev lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied 3/3
  2. v13 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- drop io_uring conversion (Pavel)

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: netmem: move to index based freelistnet/core/devmem.c net/core/devmem.h+41 -130 repliesApplied
2/3net: devmem: use memory provider helpers for net_iovsnet/core/devmem.c+11 -200 repliesApplied
3/3net: devmem: decode DMA addresses for TXinclude/linux/skbuff.h include/net/netmem.h include/net/page_pool/helpers.h +1 more+35 -233 repliesApplied

Reviews trailers per patch

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

PatchMina Almasry
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] net: consolidate devmem net_iov freelist and DMA handling

Follow up on the recently merged devmem gen_pool removal by consolidating devmem's net_iov freelist and DMA-address handling.

- move devmem freelist to index-based approach with push/pop helpers
- switch devmem to public memory-provider helpers and reject DMA addresses that cannot be represented
- decode stored DMA addresses for TX on 32-bit systems with 64-bit dma_addr_t

v2:
- drop io_uring conversion (Pavel)

Stanislav Fomichev (3):
net: netmem: move to index based freelist
net: devmem: use memory provider helpers for net_iovs
net: devmem: decode DMA addresses for TX

 include/linux/skbuff.h          |  7 ++-
 include/net/netmem.h            | 27 +++++++++++
 include/net/page_pool/helpers.h | 10 +---
 net/core/devmem.c               | 81 ++++++++++++++++++++-------------
 net/core/devmem.h               |  4 +-
 net/core/page_pool_priv.h       | 14 +-----
 6 files changed, 87 insertions(+), 56 deletions(-)
Signature · 1 line
2.53.0-Meta