Skip to content

Commit

Permalink
forcedeth: add transmit timestamping support
Browse files Browse the repository at this point in the history
Insert an skb_tx_timestamp call in both ndo_start_xmit routines
Tested to work for the nv_start_xmit_optimized case

Signed-off-by: Willem de Bruijn <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
wdebruij authored and davem330 committed May 1, 2012
1 parent 8373c57 commit 49cbb1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ethernet/nvidia/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,8 @@ static netdev_tx_t nv_start_xmit(struct sk_buff *skb, struct net_device *dev)

netdev_sent_queue(np->dev, skb->len);

skb_tx_timestamp(skb);

np->put_tx.orig = put_tx;

spin_unlock_irqrestore(&np->lock, flags);
Expand Down Expand Up @@ -2426,6 +2428,8 @@ static netdev_tx_t nv_start_xmit_optimized(struct sk_buff *skb,

netdev_sent_queue(np->dev, skb->len);

skb_tx_timestamp(skb);

np->put_tx.ex = put_tx;

spin_unlock_irqrestore(&np->lock, flags);
Expand Down

0 comments on commit 49cbb1c

Please sign in to comment.