Message ID | ac8adf65aecd78e714a172a30a0b455e3a12dec9.1308481492.git.richard.cochran@omicron.at |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
Le dimanche 19 juin 2011 à 13:20 +0200, Richard Cochran a écrit : > This patch enables software (and phy device) transmit time stamping > Compile tested only. > > Cc: Nicolas Ferre <nicolas.ferre@atmel.com> > Signed-off-by: Richard Cochran <richard.cochran@omicron.at> > --- > drivers/net/macb.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/macb.c b/drivers/net/macb.c > index 6c6a028..6944478 100644 > --- a/drivers/net/macb.c > +++ b/drivers/net/macb.c > @@ -676,6 +676,8 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev) > > spin_unlock_irqrestore(&bp->lock, flags); > > + skb_tx_timestamp(skb); > + > return NETDEV_TX_OK; > } > Same problem here, its not safe. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 6c6a028..6944478 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -676,6 +676,8 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev) spin_unlock_irqrestore(&bp->lock, flags); + skb_tx_timestamp(skb); + return NETDEV_TX_OK; }
This patch enables software (and phy device) transmit time stamping Compile tested only. Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Richard Cochran <richard.cochran@omicron.at> --- drivers/net/macb.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)