lkml.org 
[lkml]   [2018]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 09/42] tcp: Fix SOF_TIMESTAMPING_RX_HARDWARE to use the latest timestamp during TCP coalescing
    Date
    4.19-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Stephen Mallon <stephen.mallon@sydney.edu.au>

    [ Upstream commit cadf9df27e7cf40e390e060a1c71bb86ecde798b ]

    During tcp coalescing ensure that the skb hardware timestamp refers to the
    highest sequence number data.
    Previously only the software timestamp was updated during coalescing.

    Signed-off-by: Stephen Mallon <stephen.mallon@sydney.edu.au>
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/ipv4/tcp_input.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/ipv4/tcp_input.c
    +++ b/net/ipv4/tcp_input.c
    @@ -4371,6 +4371,7 @@ static bool tcp_try_coalesce(struct sock
    if (TCP_SKB_CB(from)->has_rxtstamp) {
    TCP_SKB_CB(to)->has_rxtstamp = true;
    to->tstamp = from->tstamp;
    + skb_hwtstamps(to)->hwtstamp = skb_hwtstamps(from)->hwtstamp;
    }

    return true;

    \
     
     \ /
      Last update: 2018-11-21 20:19    [W:2.475 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site