Skip to content

net: xdp: handle frags with unreadable memory

Jakub Kicinski bpf netdev 1 version 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

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: xdp: pass full flags to xdp_update_skb_shared_info()drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c drivers/net/ethernet/intel/i40e/i40e_txrx.c drivers/net/ethernet/intel/ice/ice_txrx.c +5 more+56 -642 repliesApplied
2/2net: xdp: handle frags with unreadable memoryinclude/net/xdp.h+13 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStanislav FomichevAlexander LobakinJesper Dangaard Brouer
SeriesA-b R-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: xdp: handle frags with unreadable memory

Make XDP helpers compatible with unreadable memory. This is very similar to how we handle pfmemalloc frags today. Record the info in xdp_buf flags as frags get added and then update the skb once allocated.

This series adds the unreadable memory metadata tracking to drivers using xdp_build_skb_from*() with no changes on the driver side - hence the only driver changes here are refactoring. Obviously, unreadable memory is incompatible with XDP today, but thanks to xdp_build_skb_from_buf() increasing number of drivers have a unified datapath, whether XDP is enabled or not.

RFC: https://lore.kernel.org/[email protected]

Jakub Kicinski (2):
net: xdp: pass full flags to xdp_update_skb_shared_info()
net: xdp: handle frags with unreadable memory

 include/net/xdp.h                             | 38 ++++++++++++-------
 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c |  7 ++--
 drivers/net/ethernet/intel/i40e/i40e_txrx.c   | 15 ++++----
 drivers/net/ethernet/intel/ice/ice_txrx.c     | 15 ++++----
 drivers/net/ethernet/marvell/mvneta.c         |  7 ++--
 .../net/ethernet/mellanox/mlx5/core/en_rx.c   | 23 ++++++-----
 drivers/net/virtio_net.c                      |  7 ++--
 net/core/xdp.c                                | 21 +++++-----
 8 files changed, 69 insertions(+), 64 deletions(-)
Signature · 1 line
2.51.0