* [PATCH] net : enable tx time stamping in the vde driver.
@ 2012-12-06 15:25 Paul Chavent
2012-12-06 18:57 ` Richard Cochran
0 siblings, 1 reply; 3+ messages in thread
From: Paul Chavent @ 2012-12-06 15:25 UTC (permalink / raw)
To: jdike, richard, user-mode-linux-devel, netdev, richardcochran
Cc: Paul Chavent
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 <paul.chavent@onera.fr>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] net : enable tx time stamping in the vde driver.
2012-12-06 15:25 [PATCH] net : enable tx time stamping in the vde driver Paul Chavent
@ 2012-12-06 18:57 ` Richard Cochran
2012-12-06 19:25 ` Richard Weinberger
0 siblings, 1 reply; 3+ messages in thread
From: Richard Cochran @ 2012-12-06 18:57 UTC (permalink / raw)
To: Paul Chavent; +Cc: jdike, richard, user-mode-linux-devel, netdev
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 <paul.chavent@onera.fr>
Acked-by: Richard Cochran <richardcochran@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net : enable tx time stamping in the vde driver.
2012-12-06 18:57 ` Richard Cochran
@ 2012-12-06 19:25 ` Richard Weinberger
0 siblings, 0 replies; 3+ messages in thread
From: Richard Weinberger @ 2012-12-06 19:25 UTC (permalink / raw)
To: Richard Cochran, Paul Chavent; +Cc: jdike, user-mode-linux-devel, netdev
Richard Cochran <richardcochran@gmail.com> schrieb:
>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 <paul.chavent@onera.fr>
>
>Acked-by: Richard Cochran <richardcochran@gmail.com>
Queued for 3.8.
Thanks,
//richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-06 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 15:25 [PATCH] net : enable tx time stamping in the vde driver Paul Chavent
2012-12-06 18:57 ` Richard Cochran
2012-12-06 19:25 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox