Skip to content

Commit 9fc145f

Browse files
jacob-kellerJeff Kirsher
authored andcommitted
ixgbevf: add support for software timestamps
Add a call to skb_tx_timestamp in the ixgbevf_tx_map function. This enables software timestamping for packets sent over this device driver. The call is placed just prior to when we notify hardware of the new packet, in order to software timestamp as close as possible to when the hardware will transmit. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 7fa57ca commit 9fc145f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4016,6 +4016,8 @@ static void ixgbevf_tx_map(struct ixgbevf_ring *tx_ring,
40164016
/* set the timestamp */
40174017
first->time_stamp = jiffies;
40184018

4019+
skb_tx_timestamp(skb);
4020+
40194021
/* Force memory writes to complete before letting h/w know there
40204022
* are new descriptors to fetch. (Only applicable for weak-ordered
40214023
* memory model archs, such as IA-64).

0 commit comments

Comments
 (0)