• Martin KaFai Lau's avatar
    net: Clear mono_delivery_time bit in __skb_tstamp_tx() · d93376f5
    Martin KaFai Lau authored
    In __skb_tstamp_tx(), it may clone the egress skb and queues the clone to
    the sk_error_queue.  The outgoing skb may have the mono delivery_time
    while the (rcv) timestamp is expected for the clone, so the
    skb->mono_delivery_time bit needs to be cleared from the clone.
    
    This patch adds the skb->mono_delivery_time clearing to the existing
    __net_timestamp() and use it in __skb_tstamp_tx().
    The __net_timestamp() fast path usage in dev.c is changed to directly
    call ktime_get_real() since the mono_delivery_time bit is not set at
    that point.
    Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d93376f5
skbuff.h 140 KB