jerpelea opened a new pull request, #20339:
URL: https://github.com/apache/nuttx/pull/20339

   ## Summary
   
   The STM32H7 MAC can capture a timestamp for every transmitted frame, but the 
driver only timestamped received frames (#20212). A PTP daemon using the 
peer-to-peer delay mechanism needs the transmit time of its Pdelay_Req from the 
hardware.
   
   This PR adds STM32_ETH_TIMESTAMP_TX for the STM32H7, the option that #20148 
defines for the legacy STM32 driver, delivered through the generic 
SO_TIMESTAMPING mechanism of the network stack (#20161): when a frame is 
flagged for timestamping, the driver keeps a copy of it, sets the timestamp 
enable bit in its descriptor and, when the transmission is done, reads the 
timestamp from the descriptor and loops the copy back to the AF_PACKET socket, 
where recvmsg(..., MSG_ERRQUEUE) returns it. The MAC writes the timestamp over 
the address of the buffer in the descriptor, so the driver keeps the buffer of 
these descriptors.
   
   It builds on #20148 and #20212, which are merged, so it is a single commit 
now.
   
   includes
   https://github.com/apache/nuttx/pull/20148
   https://github.com/apache/nuttx/pull/20180
   https://github.com/apache/nuttx/pull/20212
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to