xsk: Add launch time hardware offload support to XDP Tx metadata
authorSong Yoong Siang <yoong.siang.song@intel.com>
Sun, 16 Feb 2025 09:34:26 +0000 (17:34 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 20 Feb 2025 23:13:45 +0000 (15:13 -0800)
commitca4419f15abd19ba8be1e109661b60f9f5b6c9f0
tree144ff9485119fcb5a236f8886a2c79846669d56c
parent68b92ac494eb767cff5826372328c10e24b2e25a
xsk: Add launch time hardware offload support to XDP Tx metadata

Extend the XDP Tx metadata framework so that user can requests launch time
hardware offload, where the Ethernet device will schedule the packet for
transmission at a pre-determined time called launch time. The value of
launch time is communicated from user space to Ethernet driver via
launch_time field of struct xsk_tx_metadata.

Suggested-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250216093430.957880-2-yoong.siang.song@intel.com
Documentation/netlink/specs/netdev.yaml
Documentation/networking/xsk-tx-metadata.rst
include/net/xdp_sock.h
include/net/xdp_sock_drv.h
include/uapi/linux/if_xdp.h
include/uapi/linux/netdev.h
net/core/netdev-genl.c
net/xdp/xsk.c
tools/include/uapi/linux/if_xdp.h
tools/include/uapi/linux/netdev.h