Re: [PATCH v2 net] octeontx2: fix PTP RX enable notification on VF
From: Ratheesh Kannoth
Date: Mon Aug 24 2026 - 02:32:13 EST
On 2026-08-20 at 10:14:39, Ratheesh Kannoth (rkannoth@xxxxxxxxxxx) wrote:
> From: Sai Krishna <saikrishnag@xxxxxxxxxxx>
>
> When a VF enables PTP RX timestamping, CGX prepends an 8-byte timestamp
> header to each packet. The parent PF and its VFs must adjust their RX
> data offset before that happens, but enabling PTP RX only configured CGX
> and never notified the PF or VFs.
>
> Add a CGX_PTP_RX_INFO mailbox upcall from AF to PF when RX timestamping
> is enabled or disabled. On receipt, the PF records the state and forwards
> it to active VFs. Handle the upcall on the VF mailbox path so the
> notification completes correctly.
>
> Use the asynchronous upcall pattern (wait for zero, then send) on both
> AF-to-PF and PF-to-VF paths, and serialize PF-to-VF delivery with the
> mailbox lock, consistent with link-event notification.
>
> Fixes: 421572175ba5 ("octeontx2-af: Support to enable/disable HW timestamping")
> Signed-off-by: Sai Krishna <saikrishnag@xxxxxxxxxxx>
> Signed-off-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>
>
> 2.43.0
>
Will address sashiko comments in v3
pw-bot: changes-requested