* [PATCH net-next] hv_netvsc: add software transmit timestamp support
@ 2016-02-18 0:43 Simon Xiao
2016-02-19 20:47 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Simon Xiao @ 2016-02-18 0:43 UTC (permalink / raw)
To: kys, haiyangz, devel, netdev, linux-kernel
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>
---
drivers/net/hyperv/netvsc_drv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index c72e5b8..202e2b1 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 = {
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] hv_netvsc: add software transmit timestamp support
2016-02-18 0:43 [PATCH net-next] hv_netvsc: add software transmit timestamp support Simon Xiao
@ 2016-02-19 20:47 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-02-19 20:47 UTC (permalink / raw)
To: sixiao; +Cc: devel, haiyangz, linux-kernel, netdev
From: Simon Xiao <sixiao@microsoft.com>
Date: Wed, 17 Feb 2016 16:43:59 -0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-19 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 0:43 [PATCH net-next] hv_netvsc: add software transmit timestamp support Simon Xiao
2016-02-19 20:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).