Re: [PATCH] Bluetooth: L2CAP: copy RX timestamp to new fragments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pauli,

On Thu, Apr 24, 2025 at 3:02 PM Pauli Virtanen <pav@xxxxxx> wrote:
>
> Copy timestamp too when allocating new skb for received fragment.
> Fixes missing RX timestamps with fragmentation.

This seems to be missing the Fixes tag.

> Signed-off-by: Pauli Virtanen <pav@xxxxxx>
> ---
>  net/bluetooth/l2cap_core.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> 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 */
> --
> 2.49.0
>
>


-- 
Luiz Augusto von Dentz





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux