Commit 91ffb9d3 authored by Daniel Drown's avatar Daniel Drown Committed by David S. Miller

net/xen-netfront: add kernel TX timestamps

This adds kernel TX timestamps to the xen-netfront driver.  Tested with chrony
on an AWS EC2 instance.
Signed-off-by: default avatarDaniel Drown <dan-netdev@drown.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47ff6154
......@@ -754,6 +754,9 @@ static netdev_tx_t xennet_start_xmit(struct sk_buff *skb, struct net_device *dev
/* First request has the packet length. */
first_tx->size = skb->len;
/* timestamp packet in software */
skb_tx_timestamp(skb);
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&queue->tx, notify);
if (notify)
notify_remote_via_irq(queue->tx_irq);
......@@ -2411,6 +2414,7 @@ static const struct ethtool_ops xennet_ethtool_ops =
.get_sset_count = xennet_get_sset_count,
.get_ethtool_stats = xennet_get_ethtool_stats,
.get_strings = xennet_get_strings,
.get_ts_info = ethtool_op_get_ts_info,
};
#ifdef CONFIG_SYSFS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment