Skip to content

Commit 55ea1cf

Browse files
Paul Chaventrichardweinberger
authored andcommitted
net : enable tx time stamping in the vde driver.
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 <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent bc07732 commit 55ea1cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/um/drivers/net_kern.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
218218
spin_lock_irqsave(&lp->lock, flags);
219219

220220
len = (*lp->write)(lp->fd, skb, lp);
221+
skb_tx_timestamp(skb);
221222

222223
if (len == skb->len) {
223224
dev->stats.tx_packets++;
@@ -281,6 +282,7 @@ static void uml_net_get_drvinfo(struct net_device *dev,
281282
static const struct ethtool_ops uml_net_ethtool_ops = {
282283
.get_drvinfo = uml_net_get_drvinfo,
283284
.get_link = ethtool_op_get_link,
285+
.get_ts_info = ethtool_op_get_ts_info,
284286
};
285287

286288
static void uml_net_user_timer_expire(unsigned long _conn)

0 commit comments

Comments
 (0)