From: Ben Greear Date: Tue, 21 Jul 2009 19:50:02 +0000 (-0700) Subject: veth: Zero timestamp in xmit path. X-Git-Tag: firefly_0821_release~12983^2~572 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=27a242e92f77c955433ce0347533f401ecdcd0f3;p=firefly-linux-kernel-4.4.55.git veth: Zero timestamp in xmit path. This patch zero's the timestamp before handing the packet to the peer interface. This lets the peer recalculate the rx timestamp if it cares about timestamps. Signed-off-by: Ben Greear Signed-off-by: David S. Miller --- diff --git a/drivers/net/veth.c b/drivers/net/veth.c index f1d753daa5bd..190f784c9cfe 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -171,6 +171,7 @@ static int veth_xmit(struct sk_buff *skb, struct net_device *dev) if (skb->len > (rcv->mtu + MTU_PAD)) goto rx_drop; + skb->tstamp.tv64 = 0; skb->pkt_type = PACKET_HOST; skb->protocol = eth_type_trans(skb, rcv); if (dev->features & NETIF_F_NO_CSUM)