hv_netvsc: add software transmit timestamp support
Subsystems (3)
PATCH 1/1 hv_netvsc: add software transmit timestamp support
Enable skb_tx_timestamp in hyperv netvsc.
Signed-off-by Simon Xiao <[email protected]>
Reviewed-by K. Y. Srinivasan <[email protected]>
Reviewed-by Haiyang Zhang <[email protected]>
--- drivers/net/hyperv/netvsc_drv.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/hyperv/netvsc_drv.c +3 -0
@@ -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 = {
Signature · 1 line
2.5.0
From: Simon Xiao <[email protected]>
Date: Wed, 17 Feb 2016 16:43:59 -0800
Quoted 5 lines
Enable
skb_tx_timestampin hyperv netvsc.Signed-off-by Simon Xiao <[email protected]>Reviewed-by K. Y. Srinivasan <[email protected]>Reviewed-by Haiyang Zhang <[email protected]>
Applied.