Message ID | 20241205051936.3156307-1-yoong.siang.song@intel.com |
---|---|
State | New |
Headers | show |
Series | [bpf-next,v2,1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata | expand |
Hello: This patch was applied to bpf/bpf-next.git (net) by Martin KaFai Lau <martin.lau@kernel.org>: On Thu, 5 Dec 2024 13:19:36 +0800 you wrote: > Currently, user needs to manually enable transmit hardware timestamp > feature of certain Ethernet drivers, e.g. stmmac and igc drivers, through > following command after running the xdp_hw_metadata app. > > sudo hwstamp_ctl -i eth0 -t 1 > > To simplify the step test of xdp_hw_metadata, set tx_type to HWTSTAMP_TX_ON > to enable hardware timestamping for all outgoing packets, so that user no > longer need to execute hwstamp_ctl command. > > [...] Here is the summary with links: - [bpf-next,v2,1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata https://git.kernel.org/bpf/bpf-next/c/2309132fc5d9 You are awesome, thank you!
diff --git a/tools/testing/selftests/bpf/xdp_hw_metadata.c b/tools/testing/selftests/bpf/xdp_hw_metadata.c index 06266aad2f99..96c65500f4b4 100644 --- a/tools/testing/selftests/bpf/xdp_hw_metadata.c +++ b/tools/testing/selftests/bpf/xdp_hw_metadata.c @@ -551,6 +551,7 @@ static void hwtstamp_enable(const char *ifname) { struct hwtstamp_config cfg = { .rx_filter = HWTSTAMP_FILTER_ALL, + .tx_type = HWTSTAMP_TX_ON, }; hwtstamp_ioctl(SIOCGHWTSTAMP, ifname, &saved_hwtstamp_cfg);