]> git.baikalelectronics.ru Git - kernel.git/commit
net: ensure correct skb->tstamp in various fragmenters
authorEric Dumazet <edumazet@google.com>
Thu, 17 Oct 2019 01:00:56 +0000 (18:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2019 17:02:37 +0000 (10:02 -0700)
commitf7b0445d9e4daf3da2080ac6ac0df6110c6f59fa
tree3abe73fdf43b7a670cc69b6930d07c2683ade0d4
parent68ac5d62ddb760b9f6e54c6892150ff136f5c3b6
net: ensure correct skb->tstamp in various fragmenters

Thomas found that some forwarded packets would be stuck
in FQ packet scheduler because their skb->tstamp contained
timestamps far in the future.

We thought we addressed this point in commit 7a510a5f3de3
("net: clear skb->tstamp in forwarding paths") but there
is still an issue when/if a packet needs to be fragmented.

In order to meet EDT requirements, we have to make sure all
fragments get the original skb->tstamp.

Note that this original skb->tstamp should be zero in
forwarding path, but might have a non zero value in
output path if user decided so.

Fixes: 8932dea156bd ("tcp/fq: move back to CLOCK_MONOTONIC")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Thomas Bartschies <Thomas.Bartschies@cvk.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/nf_conntrack_bridge.c
net/ipv4/ip_output.c
net/ipv6/ip6_output.c
net/ipv6/netfilter.c