]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: generate software timestamp just before the doorbell
authorJason Xing <kernelxing@tencent.com>
Sat, 10 May 2025 13:48:12 +0000 (21:48 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:32:54 +0000 (19:32 -0700)
commit33d4cc81fcd930fdbcca7ac9e8959225cbec0a5e
treef36398ab32ee63ab24f18c56a71d9b73f3283722
parentaaed2789b30763da942bf89f44e025d0254ce6b8
net: stmmac: generate software timestamp just before the doorbell

Make sure the call of skb_tx_timestamp is as close as possbile to the
doorbell.

The patch also adjusts the order of setting SKBTX_IN_PROGRESS and
generate software timestamp so that without SOF_TIMESTAMPING_OPT_TX_SWHW
being set the software and hardware timestamps will not appear in the
error queue of socket nearly at the same time (Please see __skb_tstamp_tx()).

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Link: https://patch.msgid.link/20250510134812.48199-4-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c