summaryrefslogtreecommitdiff
path: root/tools/include/uapi/linux/netdev.h
diff options
context:
space:
mode:
authorSong Yoong Siang <yoong.siang.song@intel.com>2025-02-16 17:34:26 +0800
committerMartin KaFai Lau <martin.lau@kernel.org>2025-02-20 15:13:45 -0800
commitca4419f15abd19ba8be1e109661b60f9f5b6c9f0 (patch)
tree144ff9485119fcb5a236f8886a2c79846669d56c /tools/include/uapi/linux/netdev.h
parent68b92ac494eb767cff5826372328c10e24b2e25a (diff)
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
Diffstat (limited to 'tools/include/uapi/linux/netdev.h')
-rw-r--r--tools/include/uapi/linux/netdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/netdev.h b/tools/include/uapi/linux/netdev.h
index 6c6ee183802d..b97ff8bbb0c6 100644
--- a/tools/include/uapi/linux/netdev.h
+++ b/tools/include/uapi/linux/netdev.h
@@ -59,10 +59,13 @@ enum netdev_xdp_rx_metadata {
* by the driver.
* @NETDEV_XSK_FLAGS_TX_CHECKSUM: L3 checksum HW offload is supported by the
* driver.
+ * @NETDEV_XSK_FLAGS_TX_LAUNCH_TIME_FIFO: Launch time HW offload is supported
+ * by the driver.
*/
enum netdev_xsk_flags {
NETDEV_XSK_FLAGS_TX_TIMESTAMP = 1,
NETDEV_XSK_FLAGS_TX_CHECKSUM = 2,
+ NETDEV_XSK_FLAGS_TX_LAUNCH_TIME_FIFO = 4,
};
enum netdev_queue_type {