Re: [PATCH net-next v7 15/16] net: ethtool: ts: Let the active time stamping layer be selectable

From
Jakub Kicinski <kuba@kernel.org>
Date
2023-11-22 16:55:05
Also in
lkml, netdev
Reply to
Vladimir Oltean, 2023-11-22
On Wed, 22 Nov 2023 16:36:18 +0200 Vladimir Oltean wrote:
@Jakub, for your long-term "MAC timestamps for PTP, DMA for everything else".
How do you see this? I guess we need some sort of priority function in
the UAPI between hwtstamp providers.

And even with that, I think the enums that we currently have for filters
are not specific enough. The most we could expose is:

                      MAC provider                      DMA provider

hwtstamp_rx_filters   HWTSTAMP_FILTER_PTP_V2_EVENT      HWTSTAMP_FILTER_ALL
tx_type               HWTSTAMP_TX_ON                    HWTSTAMP_TX_ON

but it isn't clear: for PTP, does the DMA provider give you an RX
timestamp too?
If we phrase it as "precise / approximate" rather than "MAC / DMA" - it
seems fairly intuitive to give the best timestamp available for a given
packet, no?
What about a TX timestamp?
I was thinking - socket flag to make packets for a given socket request
precise timestamps.
Thread (78 messages) 78 messages, 9 authors, last reply 2023-11-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help