Re: [PATCH v2 net] octeontx2: fix PTP RX enable notification on VF

Ratheesh Kannoth <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <aovlRCN217lBuFY4@rkannoth-OptiPlex-7090>
On 2026-08-20 at 10:14:39, Ratheesh Kannoth ([email protected]) wrote:
> From: Sai Krishna <[email protected]>
>
> 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 <[email protected]>
> Signed-off-by: Ratheesh Kannoth <[email protected]>
>
> 2.43.0
>

Will address sashiko comments in v3

pw-bot: changes-requested
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.