Skip to content

convert drivers to use ndo_hwtstamp callbacks part 4

Vadim Fedorenko netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesApplied 2/2
  2. v42 patches 1 replySuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded
v12 patches1 replySuperseded

Changes in v5 from the cover letter

- add netif_running() check in bnx2x driver
- improve phrasing for netif_running() check

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bnx2x: convert to use ndo_hwtstamp callbacksdrivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c+49 -230 repliesApplied
2/2qede: convert to use ndo_hwtstamp callbacksdrivers/net/ethernet/qlogic/qede/qede_main.c drivers/net/ethernet/qlogic/qede/qede_ptp.c drivers/net/ethernet/qlogic/qede/qede_ptp.h+54 -500 repliesApplied

Reviews trailers per patch

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

PatchKory Maincent
1/2R-b
2/2R-b

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

Read the v5 thread

Cover letter [PATCH net-next v5 0/2] convert drivers to use ndo_hwtstamp callbacks part 4

This patchset is a subset of part 3 patchset to convert bnx2x and qede drviers to use ndo callbacks instead ioctl to configure and report time stamping. These drivers implemented only SIOCSHWTSTAMP command, but converted to also provide configuration back to users. Some logic is changed to avoid reporting configuration which is not in sync with the HW in case of error happened.

v4 -> v5:
- add netif_running() check in bnx2x driver
- improve phrasing for netif_running() check
v3 -> v4:
- improve tx_type checks to the slightly more resilient variant
- restore netif_running() check in qede driver
v2 -> v3:
- keep bnx2x driver's logic as is. Improvements will be sent as follow-ups
v1 -> v2:
- remove unused variable in qede patch

Vadim Fedorenko (2):
bnx2x: convert to use ndo_hwtstamp callbacks
qede: convert to use ndo_hwtstamp callbacks

 .../net/ethernet/broadcom/bnx2x/bnx2x_main.c  | 72 ++++++++++++------
 drivers/net/ethernet/qlogic/qede/qede_main.c  | 22 +-----
 drivers/net/ethernet/qlogic/qede/qede_ptp.c   | 76 ++++++++++++-------
 drivers/net/ethernet/qlogic/qede/qede_ptp.h   |  6 +-
 4 files changed, 103 insertions(+), 73 deletions(-)
Signature · 1 line
2.47.3