Skip to content

Commit 285ad74

Browse files
JasonXingkuba-moo
authored andcommitted
net: atlantic: generate software timestamp just before the doorbell
Make sure the call of skb_tx_timestamp is as close as possible to the doorbell. Signed-off-by: Jason Xing <kernelxing@tencent.com> Link: https://patch.msgid.link/20250510134812.48199-2-kerneljasonxing@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent a1dc1de commit 285ad74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ static netdev_tx_t aq_ndev_start_xmit(struct sk_buff *skb, struct net_device *nd
123123
}
124124
#endif
125125

126-
skb_tx_timestamp(skb);
127126
return aq_nic_xmit(aq_nic, skb);
128127
}
129128

drivers/net/ethernet/aquantia/atlantic/aq_nic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,8 @@ int aq_nic_xmit(struct aq_nic_s *self, struct sk_buff *skb)
898898

899899
frags = aq_nic_map_skb(self, skb, ring);
900900

901+
skb_tx_timestamp(skb);
902+
901903
if (likely(frags)) {
902904
err = self->aq_hw_ops->hw_ring_tx_xmit(self->aq_hw,
903905
ring, frags);

0 commit comments

Comments
 (0)