diff mbox series

Bluetooth: L2CAP: copy RX timestamp to new fragments

Message ID 66d361ea708bec460cb214662421cc9295ee2c7a.1745521149.git.pav@iki.fi
State New
Headers show
Series Bluetooth: L2CAP: copy RX timestamp to new fragments | expand

Commit Message

Pauli Virtanen April 24, 2025, 6:59 p.m. UTC
Copy timestamp too when allocating new skb for received fragment.
Fixes missing RX timestamps with fragmentation.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
---
 net/bluetooth/l2cap_core.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 5ca7ac43c58d..73472756618a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -7415,6 +7415,9 @@  static int l2cap_recv_frag(struct l2cap_conn *conn, struct sk_buff *skb,
 			return -ENOMEM;
 		/* Init rx_len */
 		conn->rx_len = len;
+
+		skb_set_delivery_time(conn->rx_skb, skb->tstamp,
+				      skb->tstamp_type);
 	}
 
 	/* Copy as much as the rx_skb can hold */