]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
act_mirred: clear skb->tstamp on redirect
authorEric Dumazet <edumazet@google.com>
Sun, 11 Nov 2018 00:22:29 +0000 (16:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 18:21:31 +0000 (10:21 -0800)
commit7236ead1b14923f3ba35cd29cce13246be83f451
tree7e111a6aa40a9e3b196b7a9570dbba98edee6843
parenta9049ff9214da68df1179a7d5e36b43479abc9b8
act_mirred: clear skb->tstamp on redirect

If sch_fq is used at ingress, skbs that might have been
timestamped by net_timestamp_set() if a packet capture
is requesting timestamps could be delayed by arbitrary
amount of time, since sch_fq time base is MONOTONIC.

Fix this problem by moving code from sch_netem.c to act_mirred.c.

Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_mirred.c
net/sched/sch_netem.c