Message ID | 20241028110535.82999-12-kerneljasonxing@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net-timestamp: bpf extension to equip applications transparently | expand |
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; } }