]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: clear skb->tstamp in bridge forwarding path
authorPaolo Abeni <pabeni@redhat.com>
Tue, 8 Jan 2019 17:45:05 +0000 (18:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Jan 2019 02:26:01 +0000 (18:26 -0800)
Matteo reported forwarding issues inside the linux bridge,
if the enslaved interfaces use the fq qdisc.

Similar to commit ef8d0457ccdf ("net: clear skb->tstamp in
forwarding paths"), we need to clear the tstamp field in
the bridge forwarding path.

Fixes: 0ac40e4e9536 ("net: Add a new socket option for a future transmit time.")
Fixes: fff99772a27e ("tcp/fq: move back to CLOCK_MONOTONIC")
Reported-and-tested-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c

index 5372e2042adfe20d3cd039c29057535b2413be61..2cb8da465b98bab0de2f29861cd19039a2a0e326 100644 (file)
@@ -65,6 +65,7 @@ EXPORT_SYMBOL_GPL(br_dev_queue_push_xmit);
 
 int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
 {
+       skb->tstamp = 0;
        return NF_HOOK(NFPROTO_BRIDGE, NF_BR_POST_ROUTING,
                       net, sk, skb, NULL, skb->dev,
                       br_dev_queue_push_xmit);