Thread (2 messages) flat view 2 messages, 1 author, 15d ago

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

From: Ratheesh Kannoth <rkannoth@marvell.com>
Date: 2026-08-24 06:32:00
Also in: lkml

On 2026-08-20 at 10:14:39, Ratheesh Kannoth (rkannoth@marvell.com) wrote:
From: Sai Krishna <redacted>

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 <redacted>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>

2.43.0
Will address sashiko comments in v3

pw-bot: changes-requested
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help