Skip to content

Commit

Permalink
net : enable tx time stamping in the vde driver.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Paul Chavent authored and richardweinberger committed Mar 11, 2013
1 parent bc07732 commit 55ea1cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/um/drivers/net_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_timestamp(skb);

if (len == skb->len) {
dev->stats.tx_packets++;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 55ea1cf

Please sign in to comment.