From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: loopback: clear skb->tstamp before netif_rx() Date: Sat, 20 Oct 2018 01:01:48 -0700 (PDT) Message-ID: <20181020.010148.721642416749000297.davem@davemloft.net> References: <20181020021126.61472-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, willemb@google.com, soheil@google.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:55498 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbeJTQXJ (ORCPT ); Sat, 20 Oct 2018 12:23:09 -0400 In-Reply-To: <20181020021126.61472-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Fri, 19 Oct 2018 19:11:26 -0700 > At least UDP / TCP stacks can now cook skbs with a tstamp using > MONOTONIC base (or arbitrary values with SCM_TXTIME) > > Since loopback driver does not call (directly or indirectly) > skb_scrub_packet(), we need to clear skb->tstamp so that > net_timestamp_check() can eventually resample the time, > using ktime_get_real(). > > Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time.") > Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC") > Signed-off-by: Eric Dumazet Applied, thanks Eric.