• Martin KaFai Lau's avatar
    net: Add skb_clear_tstamp() to keep the mono delivery_time · de799101
    Martin KaFai Lau authored
    Right now, skb->tstamp is reset to 0 whenever the skb is forwarded.
    
    If skb->tstamp has the mono delivery_time, clearing it can hurt
    the performance when it finally transmits out to fq@phy-dev.
    
    The earlier patch added a skb->mono_delivery_time bit to
    flag the skb->tstamp carrying the mono delivery_time.
    
    This patch adds skb_clear_tstamp() helper which keeps
    the mono delivery_time and clears everything else.
    
    The delivery_time clearing will be postponed until the stack knows the
    skb will be delivered locally.  It will be done in a latter patch.
    Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    de799101
ip6_output.c 51.3 KB