aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/veth.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2009-07-21 15:50:02 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-23 21:01:02 -0400
commit27a242e92f77c955433ce0347533f401ecdcd0f3 (patch)
tree54487ab8ed1aa533e8b621a816c5399242ea9d26 /drivers/net/veth.c
parentdd52856ba24ed2f67679c86f207e5a9bab1eb93b (diff)
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 <greearb@candelatech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r--drivers/net/veth.c1
1 files changed, 1 insertions, 0 deletions
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)
171 if (skb->len > (rcv->mtu + MTU_PAD)) 171 if (skb->len > (rcv->mtu + MTU_PAD))
172 goto rx_drop; 172 goto rx_drop;
173 173
174 skb->tstamp.tv64 = 0;
174 skb->pkt_type = PACKET_HOST; 175 skb->pkt_type = PACKET_HOST;
175 skb->protocol = eth_type_trans(skb, rcv); 176 skb->protocol = eth_type_trans(skb, rcv);
176 if (dev->features & NETIF_F_NO_CSUM) 177 if (dev->features & NETIF_F_NO_CSUM)