Source
62
62
/* The higher levels take care of making this non-reentrant (it's
63
63
* called with bh's disabled).
64
64
*/
65
65
static netdev_tx_t loopback_xmit(struct sk_buff *skb,
66
66
struct net_device *dev)
67
67
{
68
68
struct pcpu_lstats *lb_stats;
69
69
int len;
70
70
71
71
skb_tx_timestamp(skb);
72
+
73
+
/* do not fool net_timestamp_check() with various clock bases */
74
+
skb->tstamp = 0;
75
+
72
76
skb_orphan(skb);
73
77
74
78
/* Before queueing this packet to netif_rx(),
75
79
* make sure dst is refcounted.
76
80
*/
77
81
skb_dst_force(skb);
78
82
79
83
skb->protocol = eth_type_trans(skb, dev);
80
84
81
85
/* it's OK to use per_cpu_ptr() because BHs are off */