Skip to content

Commit

Permalink
hv_netvsc: add software transmit timestamp support
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
simonxiaoss authored and davem330 committed Feb 19, 2016
1 parent e0d8c1b commit 76d13b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
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);

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 76d13b5

Please sign in to comment.