]> git.ipfire.org Git - thirdparty/linux.git/commit
xsk: move xsk_tx_metadata_request() to xdp_sock_drv.h
authorStanislav Fomichev <sdf.kernel@gmail.com>
Mon, 27 Jul 2026 16:19:58 +0000 (09:19 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Aug 2026 23:43:54 +0000 (16:43 -0700)
commitddd0d6c5bfe2fef7c7cf31f62265f29b7b9eb9ef
tree44ff833a755b3b36294135683a6c81c6d22d3eb0
parent439ce2dddf3d22129b9113a7881637256a35e936
xsk: move xsk_tx_metadata_request() to xdp_sock_drv.h

xsk_tx_metadata_request() must validate metadata with
xsk_buff_valid_tx_metadata(), which is defined in xdp_sock_drv.h. Move the
helper there before adding that dependency. All callers already include
the destination header, so this has no functional effect.

Fixes: ca4419f15abd ("xsk: Add launch time hardware offload support to XDP Tx metadata")
Cc: Cen Zhang (Microsoft) <blbllhy@gmail.com>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260727161959.885642-6-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/xdp_sock.h
include/net/xdp_sock_drv.h