Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55ea1cfa authored by Paul Chavent's avatar Paul Chavent Committed by Richard Weinberger
Browse files

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: default avatarPaul Chavent <paul.chavent@onera.fr>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent bc077320
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -218,6 +218,7 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
	spin_lock_irqsave(&lp->lock, flags);
	spin_lock_irqsave(&lp->lock, flags);


	len = (*lp->write)(lp->fd, skb, lp);
	len = (*lp->write)(lp->fd, skb, lp);
	skb_tx_timestamp(skb);


	if (len == skb->len) {
	if (len == skb->len) {
		dev->stats.tx_packets++;
		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 = {
static const struct ethtool_ops uml_net_ethtool_ops = {
	.get_drvinfo	= uml_net_get_drvinfo,
	.get_drvinfo	= uml_net_get_drvinfo,
	.get_link	= ethtool_op_get_link,
	.get_link	= ethtool_op_get_link,
	.get_ts_info	= ethtool_op_get_ts_info,
};
};


static void uml_net_user_timer_expire(unsigned long _conn)
static void uml_net_user_timer_expire(unsigned long _conn)