Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

sixiao@microsoft.com and committed by
David S. Miller
76d13b56 e0d8c1b7

+3
+3
drivers/net/hyperv/netvsc_drv.c
··· 550 550 packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size, 551 551 skb, packet, &pb); 552 552 553 + /* timestamp packet in software */ 554 + skb_tx_timestamp(skb); 553 555 ret = netvsc_send(net_device_ctx->device_ctx, packet, 554 556 rndis_msg, &pb, skb); 555 557 ··· 922 920 .get_link = ethtool_op_get_link, 923 921 .get_channels = netvsc_get_channels, 924 922 .set_channels = netvsc_set_channels, 923 + .get_ts_info = ethtool_op_get_ts_info, 925 924 }; 926 925 927 926 static const struct net_device_ops device_ops = {