Skip to content

ionic: add PTP and hw clock support

Shannon Nelson netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 21 repliesApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12ionic: add new queue features to interfacedrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_if.h drivers/net/ethernet/pensando/ionic/ionic_lif.c+25 -60 repliesApplied
2/12ionic: add handling of larger descriptorsdrivers/net/ethernet/pensando/ionic/ionic_if.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h +1 more+73 -292 repliesApplied
3/12ionic: add hw timestamp structs to interfacedrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_if.h+170 -60 repliesApplied
4/12ionic: split adminq post and wait callsdrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_main.c+13 -40 repliesApplied
5/12ionic: add hw timestamp support filesdrivers/net/ethernet/pensando/ionic/ionic_phc.c+589 -09 repliesApplied
6/12ionic: link in the new hw timestamp codedrivers/net/ethernet/pensando/ionic/Makefile drivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_dev.c +4 more+107 -00 repliesApplied
7/12ionic: add rx filtering for hw timestamp steeringdrivers/net/ethernet/pensando/ionic/ionic_rx_filter.c drivers/net/ethernet/pensando/ionic/ionic_rx_filter.h+22 -00 repliesApplied
8/12ionic: set up hw timestamp queuesdrivers/net/ethernet/pensando/ionic/ionic_lif.c+261 -50 repliesApplied
9/12ionic: add and enable tx and rx timestamp handlingdrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_txrx.c +1 more+157 -255 repliesApplied
10/12ionic: add ethtool support for PTPdrivers/net/ethernet/pensando/ionic/ionic_ethtool.c+93 -00 repliesApplied
11/12ionic: ethtool ptp statsdrivers/net/ethernet/pensando/ionic/ionic_stats.c+34 -40 repliesApplied
12/12ionic: advertise support for hardware timestampsdrivers/net/ethernet/pensando/ionic/ionic_lif.c+25 -03 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 00/12] ionic: add PTP and hw clock support

This patchset adds support for accessing the DSC hardware clock and for offloading PTP timestamping.

Tx packet timestamping happens through a separate Tx queue set up with expanded completion descriptors that can report the timestamp.

Rx timestamping can happen either on all queues, or on a separate timestamping queue when specific filtering is requested. Again, the timestamps are reported with the expanded completion descriptors.

The timestamping offload ability is advertised but not enabled until an OS service asks for it. At that time the driver's queues are reconfigured to use the different completion descriptors and the private processing queues as needed.

Reading the raw clock value comes through a new pair of values in the device info registers in BAR0. These high and low values are interpreted with help from new clock mask, mult, and shift values in the device identity information.

First we add the ability to detect new queue features, then the handling of the new descriptor sizes. After adding the new interface structures, we start adding the support code, saving the advertising to the stack for last.

Shannon Nelson (12):
ionic: add new queue features to interface
ionic: add handling of larger descriptors
ionic: add hw timestamp structs to interface
ionic: split adminq post and wait calls
ionic: add hw timestamp support files
ionic: link in the new hw timestamp code
ionic: add rx filtering for hw timestamp steering
ionic: set up hw timestamp queues
ionic: add and enable tx and rx timestamp handling
ionic: add ethtool support for PTP
ionic: ethtool ptp stats
ionic: advertise support for hardware timestamps

 drivers/net/ethernet/pensando/ionic/Makefile  |   1 +
 drivers/net/ethernet/pensando/ionic/ionic.h   |   6 +
 .../net/ethernet/pensando/ionic/ionic_dev.c   |   2 +
 .../net/ethernet/pensando/ionic/ionic_dev.h   |   3 +
 .../ethernet/pensando/ionic/ionic_ethtool.c   |  93 +++
 .../net/ethernet/pensando/ionic/ionic_if.h    | 214 ++++++-
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 439 ++++++++++++-
 .../net/ethernet/pensando/ionic/ionic_lif.h   |  75 +++
 .../net/ethernet/pensando/ionic/ionic_main.c  |  17 +-
 .../net/ethernet/pensando/ionic/ionic_phc.c   | 589 ++++++++++++++++++
 .../ethernet/pensando/ionic/ionic_rx_filter.c |  21 +
 .../ethernet/pensando/ionic/ionic_rx_filter.h |   1 +
 .../net/ethernet/pensando/ionic/ionic_stats.c |  38 +-
 .../net/ethernet/pensando/ionic/ionic_txrx.c  | 138 +++-
 .../net/ethernet/pensando/ionic/ionic_txrx.h  |   3 +
 15 files changed, 1565 insertions(+), 75 deletions(-)
 create mode 100644 drivers/net/ethernet/pensando/ionic/ionic_phc.c
Signature · 1 line
2.17.1