]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'net-xdp-handle-frags-with-unreadable-memory'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Sep 2025 10:00:25 +0000 (12:00 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Sep 2025 10:00:26 +0000 (12:00 +0200)
Jakub Kicinski says:

====================
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/20250812161528.835855-1-kuba@kernel.org
====================

Link: https://patch.msgid.link/20250905221539.2930285-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge