Re: [PATCH net-next v5 08/16] net: ethtool: Add a command to expose current time stamping layer

From
Vladimir Oltean <vladimir.oltean@nxp.com>
Date
2023-10-13 16:20:39
Also in
lkml, netdev
Reply to
Jakub Kicinski, 2023-10-13
On Fri, Oct 13, 2023 at 09:00:20AM -0700, Jakub Kicinski wrote:
On Tue, 10 Oct 2023 10:23:43 +0200 Köry Maincent wrote:
quoted
quoted
Why do we have to set NETDEV_TIMESTAMPING here, or is this a round-about 
way of enumerating 0, 1, 2 and 3?  
I answered you above the software timestamping should have the
NETDEV_TIMESTAMPING bit set as it is done from the net device driver.

What I was thinking is that all the new timestamping should have
NETDEV_TIMESTAMPING or PHYLIB_TIMESTAMPING set to know which API to pass
through.
Like we could add these in the future:
MAC_DMA_TIMESTAMPING = (2 << 2) | (1 >> 0),
MAC_PRECISION_TIMESTAMPING = (3 << 2) | (1 >> 0),
...
PHY_SFP_TIMESTAMPING = (2 << 2) | (1 << 1),
...
What is "PRECISION"? DMA is a separate block like MAC and PHY.
If DMA is a separate block like MAC and PHY, can it have its own PHC
device, and the ethtool UAPI only lists the timestamping-capable PHCs
for one NIC, and is able to select between them? Translation between the
UAPI-visible PHC index and MAC, DMA, phylib PHY, other PHY etc can then
be done by the kernel as needed.
Thread (61 messages) 61 messages, 11 authors, last reply 2023-10-20
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