]> Git Repo - linux.git/commit
net: loopback: clear skb->tstamp before netif_rx()
authorEric Dumazet <[email protected]>
Sat, 20 Oct 2018 02:11:26 +0000 (19:11 -0700)
committerDavid S. Miller <[email protected]>
Sat, 20 Oct 2018 08:01:28 +0000 (01:01 -0700)
commit4c16128b6271e70c8743178e90cccee147858503
treeae8fad1930523a8807ff9ece83b230ff224628ff
parentb5b4185cfb61485e34c674c2a524d71531dc52e5
net: loopback: clear skb->tstamp before netif_rx()

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 <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Cc: Soheil Hassas Yeganeh <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/loopback.c
This page took 0.049697 seconds and 4 git commands to generate.