* [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
^ permalink raw reply related [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 [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