* [PATCH net v2] octeontx2-pf: Fix ethtool timestamping capabilities for SDP representors
@ 2026-09-01 11:48 nshettyj
0 siblings, 0 replies; only message in thread
From: nshettyj @ 2026-09-01 11:48 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Roy Franz, Nitin Shetty J, Sunil Goutham, Geetha sowjanya,
Ratheesh Kannoth, Subbaraya Sundeep, Bharat Bhushan, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Richard Cochran, Simon Horman
From: Roy Franz <rfranz@marvell.com>
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@marvell.com>
Signed-off-by: Roy Franz <rfranz@marvell.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-01 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 11:48 [PATCH net v2] octeontx2-pf: Fix ethtool timestamping capabilities for SDP representors nshettyj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox