Thread (7 messages) flat view 7 messages, 3 authors, 2026-02-25
STALE204d

Revision v2 of 10 in this series.

Revisions (10)
  1. v1 [diff vs current]
  2. v2 current
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]
  7. v7 [diff vs current]
  8. v8 [diff vs current]
  9. v9 [diff vs current]
  10. v10 [diff vs current]

[PATCH v2 net-next 0/3] Implement PTP support in netdevsim

From: Maciek Machnikowski <hidden>
Date: 2026-02-23 12:34:58

This patchset adds support to the PTP HW timestamping emulation in the
netdevsim. It uses existing binding between netdevsim and ptp_mock
driver to generate transmit and receive timestamps.

It also adds the selftest to verify the hw timestamping functionality
running over netdevsim.

v2:
- Added selftest/net/ptp.sh
- Modified ptp_mock to use spin_lock_bh
- Populate ethtool defaults using ethtool_op_get_ts_info

Maciek Machnikowski (3):
  ptp_mock: Expose ptp_clock_info to external drivers
  netdevsim: Implement basic ptp support
  selftests:net: Implement ptp4l sync test using netdevsim

 drivers/net/netdevsim/ethtool.c    | 11 ++++
 drivers/net/netdevsim/netdev.c     | 90 +++++++++++++++++++++++++++++
 drivers/net/netdevsim/netdevsim.h  |  1 +
 drivers/ptp/ptp_mock.c             | 22 ++++---
 include/linux/ptp_mock.h           |  5 ++
 tools/testing/selftests/net/ptp.sh | 93 ++++++++++++++++++++++++++++++
 6 files changed, 214 insertions(+), 8 deletions(-)
 create mode 100755 tools/testing/selftests/net/ptp.sh

-- 
2.53.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help