selftests/bpf: Add launch time request to xdp_hw_metadata
authorSong Yoong Siang <yoong.siang.song@intel.com>
Sun, 16 Feb 2025 09:34:27 +0000 (17:34 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 20 Feb 2025 23:13:45 +0000 (15:13 -0800)
commit6164847e5403dd56ec06c36e22526747bce61b13
treea7495277fef1664ebc81c543835dca54038303e9
parentca4419f15abd19ba8be1e109661b60f9f5b6c9f0
selftests/bpf: Add launch time request to xdp_hw_metadata

Add launch time hardware offload request to xdp_hw_metadata. Users can
configure the delta of launch time relative to HW RX-time using the "-l"
argument. By default, the delta is set to 0 ns, which means the launch time
is disabled. By setting the delta to a non-zero value, the launch time
hardware offload feature will be enabled and requested. Additionally, users
can configure the Tx Queue to be enabled with the launch time hardware
offload using the "-L" argument. By default, Tx Queue 0 will be used.

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>
Link: https://patch.msgid.link/20250216093430.957880-3-yoong.siang.song@intel.com
tools/testing/selftests/bpf/xdp_hw_metadata.c