[PATCH net-next v2] net: thunder: make tx software timestamp independent

Willem de Bruijn willemdebruijn.kernel at gmail.com
Fri May 9 06:22:53 PDT 2025


Jason Xing wrote:
> From: Jason Xing <kernelxing at tencent.com>
> 
> skb_tx_timestamp() is used for tx software timestamp enabled by
> SOF_TIMESTAMPING_TX_SOFTWARE while SKBTX_HW_TSTAMP is used for
> SOF_TIMESTAMPING_TX_HARDWARE. As it clearly shows they are different
> timestamps in two dimensions, it's not appropriate to group these two
> together in the if-statement.
> 
> This patch completes three things:
> 1. make the software one standalone. Users are able to set both
> timestamps together with SOF_TIMESTAMPING_OPT_TX_SWHW flag.
> 2. make the software one generated after the hardware timestamp logic to
> avoid generating sw and hw timestamps at one time without
> SOF_TIMESTAMPING_OPT_TX_SWHW being set.
> 3. move the software timestamp call as close to the door bell.
> 
> Signed-off-by: Jason Xing <kernelxing at tencent.com>

Reviewed-by: Willem de Bruijn <willemb at google.com>



More information about the linux-arm-kernel mailing list