diff options
author | Jason Xing <kernelxing@tencent.com> | 2025-05-08 11:44:33 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-09 16:21:25 -0700 |
commit | 179542a98730ba40aef6806c7480c85ce731e588 (patch) | |
tree | 8384a692c627cdd111c2b5be0bb8ebb4ef8ab67a /tools/net/ynl/pyynl/cli.py | |
parent | a9ce2ce1800e04267e6d99016ed0fe132d6049a9 (diff) |
net: thunder: make tx software timestamp independent
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@tencent.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250508034433.14408-1-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions