diff options
author | sixiao@microsoft.com <sixiao@microsoft.com> | 2016-02-17 16:43:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-19 15:46:56 -0500 |
commit | 76d13b568776fdef646c70878de406c90aef46a9 (patch) | |
tree | d5fd9e004aac7b235b2bdfda2de170ae06948dc5 /drivers/net/hyperv | |
parent | e0d8c1b7381133240f0c69eaf740f64975b6058e (diff) | |
download | linux-76d13b568776fdef646c70878de406c90aef46a9.tar.bz2 |
hv_netvsc: add software transmit timestamp support
Enable skb_tx_timestamp in hyperv netvsc.
Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index c72e5b83afdb..202e2b179509 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -550,6 +550,8 @@ do_send: packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size, skb, packet, &pb); + /* timestamp packet in software */ + skb_tx_timestamp(skb); ret = netvsc_send(net_device_ctx->device_ctx, packet, rndis_msg, &pb, skb); @@ -920,6 +922,7 @@ static const struct ethtool_ops ethtool_ops = { .get_link = ethtool_op_get_link, .get_channels = netvsc_get_channels, .set_channels = netvsc_set_channels, + .get_ts_info = ethtool_op_get_ts_info, }; static const struct net_device_ops device_ops = { |