Commit 074c3582 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

virtio_net: add software timestamp support

This patch enables the use of software timestamping via the virtio_net
driver.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 6930895d
...@@ -925,6 +925,9 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -925,6 +925,9 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
/* Free up any pending old buffers before queueing new ones. */ /* Free up any pending old buffers before queueing new ones. */
free_old_xmit_skbs(sq); free_old_xmit_skbs(sq);
/* timestamp packet in software */
skb_tx_timestamp(skb);
/* Try to transmit */ /* Try to transmit */
err = xmit_skb(sq, skb); err = xmit_skb(sq, skb);
...@@ -1376,6 +1379,7 @@ static const struct ethtool_ops virtnet_ethtool_ops = { ...@@ -1376,6 +1379,7 @@ static const struct ethtool_ops virtnet_ethtool_ops = {
.get_ringparam = virtnet_get_ringparam, .get_ringparam = virtnet_get_ringparam,
.set_channels = virtnet_set_channels, .set_channels = virtnet_set_channels,
.get_channels = virtnet_get_channels, .get_channels = virtnet_get_channels,
.get_ts_info = ethtool_op_get_ts_info,
}; };
#define MIN_MTU 68 #define MIN_MTU 68
......
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