* [uml-devel] [PATCH] net: fixup tx time stamping for uml vde driver.
@ 2012-12-05 14:20 Paul Chavent
2012-12-06 6:55 ` Richard Cochran
0 siblings, 1 reply; 2+ messages in thread
From: Paul Chavent @ 2012-12-05 14:20 UTC (permalink / raw)
To: jdike, richard, user-mode-linux-devel, netdev; +Cc: Paul Chavent
Call skb_tx_timestamp after write completion.
Signed-off-by: Paul Chavent <paul.chavent@onera.fr>
---
arch/um/drivers/vde_kern.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/um/drivers/vde_kern.c b/arch/um/drivers/vde_kern.c
index 6a365fa..38fea2f 100644
--- a/arch/um/drivers/vde_kern.c
+++ b/arch/um/drivers/vde_kern.c
@@ -52,9 +52,13 @@ static int vde_write(int fd, struct sk_buff *skb, struct uml_net_private *lp)
{
struct vde_data *pri = (struct vde_data *) &lp->user;
- if (pri->conn != NULL)
- return vde_user_write((void *)pri->conn, skb->data,
- skb->len);
+ if (pri->conn != NULL) {
+ int count;
+ count = vde_user_write((void *)pri->conn, skb->data,
+ skb->len);
+ skb_tx_timestamp(skb);
+ return count;
+ }
printk(KERN_ERR "vde_write - we have no VDECONN to write to");
return -EBADF;
--
1.7.12.1
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [uml-devel] [PATCH] net: fixup tx time stamping for uml vde driver.
2012-12-05 14:20 [uml-devel] [PATCH] net: fixup tx time stamping for uml vde driver Paul Chavent
@ 2012-12-06 6:55 ` Richard Cochran
0 siblings, 0 replies; 2+ messages in thread
From: Richard Cochran @ 2012-12-06 6:55 UTC (permalink / raw)
To: Paul Chavent; +Cc: richard, jdike, user-mode-linux-devel, netdev
On Wed, Dec 05, 2012 at 03:20:53PM +0100, Paul Chavent wrote:
> Call skb_tx_timestamp after write completion.
>
> Signed-off-by: Paul Chavent <paul.chavent@onera.fr>
The subject line would better describe the changes if it would read,
"enable tx time stamping in the uml vde driver."
Can you please also add support for ethtool get_ts_info?
Thanks,
Richard
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-06 6:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-05 14:20 [uml-devel] [PATCH] net: fixup tx time stamping for uml vde driver Paul Chavent
2012-12-06 6:55 ` Richard Cochran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox