]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xsk: wrap generic metadata handling onto separate function
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Thu, 25 Sep 2025 16:00:09 +0000 (18:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Sep 2025 20:51:45 +0000 (13:51 -0700)
commit30c3055f9c0d84a67b8fd723bdec9b1b52b3c695
tree86e6ae35da4fc0f86f5b55b1e45751f654c19b61
parent6b9c129c2f93df545248e26434720928f249ff2e
xsk: wrap generic metadata handling onto separate function

xsk_build_skb() has gone wild with its size and one of the things we can
do about it is to pull out a branch that takes care of metadata handling
and make it a separate function.

While at it, let us add metadata SW support for devices supporting
IFF_TX_SKB_NO_LINEAR flag, that happen to have separate logic for
building skb in xsk's generic xmit path.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250925160009.2474816-4-maciej.fijalkowski@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/xdp/xsk.c