[PATCH net v2] octeontx2-pf: Fix ethtool timestamping capabilities for SDP representors
From: nshettyj
Date: Tue Sep 01 2026 - 07:52:37 EST
From: Roy Franz <rfranz@xxxxxxxxxxx>
SDP representors do not support hardware timestamping. The current
implementation of otx2_get_ts_info incorrectly advertises hardware
timestamping capabilities and a PHC index to userspace for these
interfaces.
Fix this by checking if the device is an SDP representor and returning
the default software timestamping capabilities instead.
Fixes: 2f7f33a09516 ("octeontx2-pf: Add representors for sdp MAC")
Signed-off-by: Nitin Shetty J <nshettyj@xxxxxxxxxxx>
Signed-off-by: Roy Franz <rfranz@xxxxxxxxxxx>
---
v2:
- Disable PTP initialization for SDP representors to cover both
ethtool capabilities and hwtstamp ioctl handling.
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
index 95b0a1e7c936..7b0a51f453ce 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
@@ -386,7 +386,7 @@ int otx2_ptp_init(struct otx2_nic *pfvf)
struct ptp_req *req;
int err;
- if (is_otx2_lbkvf(pfvf->pdev)) {
+ if (is_otx2_lbkvf(pfvf->pdev) || is_otx2_sdp_rep(pfvf->pdev)) {
pfvf->ptp = NULL;
return 0;
}
--
2.48.1