Skip to content

add gettimex64() support for mlx4

Mahesh Bandewar netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Split the original patch that implemented time-cache and added pre-/post-timestamp into two separate patches.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlx4: introduce the time_cache into the mlx4 PTP implementationdrivers/net/ethernet/mellanox/mlx4/en_clock.c drivers/net/ethernet/mellanox/mlx4/main.c drivers/net/ethernet/mellanox/mlx4/mlx4_en.h+24 -62 replies
2/3mlx4: update mlx4_read_clock() to provide pre/post timestampsdrivers/net/ethernet/mellanox/mlx4/en_clock.c drivers/net/ethernet/mellanox/mlx4/main.c include/linux/mlx4/device.h+19 -100 replies
3/3mlx4: add gettimex64() ptp methoddrivers/net/ethernet/mellanox/mlx4/en_clock.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 net-next 0/3] add gettimex64() support for mlx4

The current driver only supports the gettime64() PTP clock read operation. This series introduces support for gettimex64(), which provides pre- and post-timestamps using one of the supported clock bases to help measure the clock-read width.

The first patch reorganizes the code to enable the existing clock-read method to handle pre- and post-timestamps. The second patch adds the gettimex64() functionality.

Mahesh Bandewar (3):
mlx4: introduce the time_cache into the mlx4 PTP implementation
mlx4: update mlx4_read_clock() to provide pre/post timestamps
mlx4: add gettimex64() ptp method

 drivers/net/ethernet/mellanox/mlx4/en_clock.c | 50 +++++++++++++++++--
 drivers/net/ethernet/mellanox/mlx4/main.c     | 12 +++--
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h  |  1 +
 include/linux/mlx4/device.h                   |  3 +-
 4 files changed, 57 insertions(+), 9 deletions(-)

v1->v2
* Split the original patch that implemented time-cache and added pre-/post-timestamp into two separate patches.

Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog