[PATCH] net : enable tx time stamping in the vde driver.

Subsystems: the rest, user-mode linux (uml)

STALE5010d

3 messages, 3 authors, 2012-12-06 · open the first message on its own page

[PATCH] net : enable tx time stamping in the vde driver.

From: Paul Chavent <hidden>
Date: 2012-12-06 15:29:00

This new version moves the skb_tx_timestamp in the main uml
driver. This should avoid the need to call this function in each
transport (vde, slirp, tuntap, ...). It also add support for ethtool
get_ts_info.

Signed-off-by: Paul Chavent <redacted>
---
 arch/um/drivers/net_kern.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c
index b1314eb..5aa8696 100644
--- a/arch/um/drivers/net_kern.c
+++ b/arch/um/drivers/net_kern.c
@@ -218,6 +218,7 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
 	spin_lock_irqsave(&lp->lock, flags);
 
 	len = (*lp->write)(lp->fd, skb, lp);
+	skb_tx_timestampns(skb);
 
 	if (len == skb->len) {
 		dev->stats.tx_packets++;
@@ -281,6 +282,7 @@ static void uml_net_get_drvinfo(struct net_device *dev,
 static const struct ethtool_ops uml_net_ethtool_ops = {
 	.get_drvinfo	= uml_net_get_drvinfo,
 	.get_link	= ethtool_op_get_link,
+	.get_ts_info	= ethtool_op_get_ts_info,
 };
 
 static void uml_net_user_timer_expire(unsigned long _conn)
-- 
1.7.12.1

Re: [PATCH] net : enable tx time stamping in the vde driver.

From: Richard Cochran <richardcochran@gmail.com>
Date: 2012-12-06 18:57:53

On Thu, Dec 06, 2012 at 04:25:05PM +0100, Paul Chavent wrote:
This new version moves the skb_tx_timestamp in the main uml
driver. This should avoid the need to call this function in each
transport (vde, slirp, tuntap, ...). It also add support for ethtool
get_ts_info.

Signed-off-by: Paul Chavent <redacted>
Acked-by: Richard Cochran <richardcochran@gmail.com>

Re: [PATCH] net : enable tx time stamping in the vde driver.

From: Richard Weinberger <richard@nod.at>
Date: 2012-12-06 19:25:10


Richard Cochran [off-list ref] schrieb:
On Thu, Dec 06, 2012 at 04:25:05PM +0100, Paul Chavent wrote:
quoted
This new version moves the skb_tx_timestamp in the main uml
driver. This should avoid the need to call this function in each
transport (vde, slirp, tuntap, ...). It also add support for ethtool
get_ts_info.

Signed-off-by: Paul Chavent <redacted>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Queued for 3.8.

Thanks,
//richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help