• M
    net: Add skb_clear_tstamp() to keep the mono delivery_time · de799101
    Martin KaFai Lau 提交于
    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: NMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    de799101
skbuff.c 160.4 KB