From: Jason Xing <kernelxing@xxxxxxxxxxx> Let it work for TCP proto. Signed-off-by: Jason Xing <kernelxing@xxxxxxxxxxx> --- net/ipv4/tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 6b23b4aa3c91..f77dc7a4a98e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -488,6 +488,8 @@ static void tcp_tx_timestamp_bpf(struct sock *sk, struct sk_buff *skb) sock_tx_timestamp_bpf(tsflags, &shinfo->tx_flags); if (tsflags & SOF_TIMESTAMPING_TX_ACK) tcb->txstamp_ack = 1; + if (tsflags & SOF_TIMESTAMPING_TX_RECORD_MASK) + shinfo->tskey = TCP_SKB_CB(skb)->seq + skb->len - 1; } } -- 2.37.3