Skip to content

mlx4_en: Add PTP support

Shawn Bohrer netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 6 repliesIn review
  2. v12 patches 18 repliesSuperseded

Changes in v4 from the cover letter

* Initialize clock_lock
* Use reader/writer spinlock for clock_lock to improve performance when timetamping is enabled.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mlx4_en: Add PTP hardware clockdrivers/net/ethernet/mellanox/mlx4/en_clock.c drivers/net/ethernet/mellanox/mlx4/en_ethtool.c drivers/net/ethernet/mellanox/mlx4/en_main.c +1 more+198 -83 replies
2/2mlx4_en: Only cycle port if HW timestamp config changesdrivers/net/ethernet/mellanox/mlx4/en_clock.c+4 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHadar Hen ZionRichard Cochran
1/2A-b A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH net-next v4 0/2] mlx4_en: Add PTP support

From: Shawn Bohrer <[email protected]>

This adds support to the mlx4_en driver to support running a PTP client with hardware timestamp support. It also allows synchronization of the hardware timestamped packets with the system clock.

v2:
* Implemented mlx4_en_phc_adjfreq() in software.
* Protected timecounter with a spinlock
* Set the phc_index in mlx4_en_get_ts_info()
* Use a hard-coded ptp_clock_info.name

v3: is code identical to v2. I simply finished testing it with linuxptp, cleaned up the commit description a little and sent to davem.

v4:
* Initialize clock_lock
* Use reader/writer spinlock for clock_lock to improve performance when timetamping is enabled.

Shawn Bohrer (2):
mlx4_en: Add PTP hardware clock
mlx4_en: Only cycle port if HW timestamp config changes

 drivers/net/ethernet/mellanox/mlx4/en_clock.c   |  198 ++++++++++++++++++++++-
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c |    3 +
 drivers/net/ethernet/mellanox/mlx4/en_main.c    |    3 +
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h    |    6 +
 4 files changed, 202 insertions(+), 8 deletions(-)
Signature · 1 line
1.7.7.6