Skip to content

Commit 49cbb1c

Browse files
wdebruijdavem330
authored andcommitted
forcedeth: add transmit timestamping support
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 <willemb@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8373c57 commit 49cbb1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/net/ethernet/nvidia/forcedeth.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,6 +2279,8 @@ static netdev_tx_t nv_start_xmit(struct sk_buff *skb, struct net_device *dev)
22792279

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

2282+
skb_tx_timestamp(skb);
2283+
22822284
np->put_tx.orig = put_tx;
22832285

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

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

2431+
skb_tx_timestamp(skb);
2432+
24292433
np->put_tx.ex = put_tx;
24302434

24312435
spin_unlock_irqrestore(&np->lock, flags);

0 commit comments

Comments
 (0)