Skip to content

convert 3 drivers to ndo_hwtstamp API

Vadim Fedorenko netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review 3 of 4 applied
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* fix selftest error path and linter issues
* collect Rb tags from Pavan and Michael
Vadim Fedorenko (4):
tg3: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
bnxt_en: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
mlx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
selftests: drv-net: add HW timestamping tests

Patches in v2 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4tg3: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()drivers/net/ethernet/broadcom/tg3.c+29 -370 repliesApplied
2/4bnxt_en: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()drivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h+23 -270 repliesApplied
3/4mlx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()drivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h drivers/net/ethernet/mellanox/mlx5/core/en/trap.h +7 more+40 -690 replies
4/4selftests: drv-net: add HW timestamping teststools/testing/selftests/drivers/net/hw/Makefile tools/testing/selftests/drivers/net/hw/nic_timestamp.py+114 -00 repliesApplied

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchPavan ChebbiMichael Chan
1/4R-b R-b
2/4R-b R-b
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] convert 3 drivers to ndo_hwtstamp API

Convert tg3, bnxt_en and mlx5 to use ndo_hwtstamp API. These 3 drivers were chosen because I have access to the HW and is able to test the changes. Also there is a selftest provided to validated that the driver correctly sets up timestamp configuration, according to what is exposed as supported by the hardware. Selftest allows driver to fallback to some wider scope of RX timestamping, i.e. it allows the driver to set up ptpv2-event filter when ptpv2-l2-event is requested.

v1 -> v2:
* fix selftest error path and linter issues
* collect Rb tags from Pavan and Michael
Vadim Fedorenko (4):
tg3: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
bnxt_en: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
mlx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
selftests: drv-net: add HW timestamping tests

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |   8 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c |  35 +++---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h |   7 +-
 drivers/net/ethernet/broadcom/tg3.c           |  66 +++++-----
 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  13 +-
 .../net/ethernet/mellanox/mlx5/core/en/ptp.h  |   2 +-
 .../net/ethernet/mellanox/mlx5/core/en/trap.h |   2 +-
 .../net/ethernet/mellanox/mlx5/core/en/txrx.h |   2 +-
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  47 +++-----
 .../net/ethernet/mellanox/mlx5/core/en_rx.c   |   2 +-
 .../ethernet/mellanox/mlx5/core/ipoib/ipoib.c |  17 +--
 .../ethernet/mellanox/mlx5/core/ipoib/ipoib.h |   1 -
 .../mellanox/mlx5/core/ipoib/ipoib_vlan.c     |   9 +-
 .../ethernet/mellanox/mlx5/core/lib/clock.h   |  14 +--
 .../testing/selftests/drivers/net/hw/Makefile |   1 +
 .../selftests/drivers/net/hw/nic_timestamp.py | 113 ++++++++++++++++++
 16 files changed, 206 insertions(+), 133 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/hw/nic_timestamp.py
Signature · 1 line
2.47.3