Skip to content

sfc: add support for PTP over IPv6 and 802.3

Íñigo Huguet netdev 5 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyApplied 3/3
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches0 repliesSuperseded
v13 patches3 repliesSuperseded

Patches in v5 All 3 applied

#Subject and filesSizeRepliesApplied
1/3sfc: allow more flexible way of adding filters for PTPdrivers/net/ethernet/sfc/ptp.c+32 -360 repliesApplied
2/3sfc: support PTP over IPv6/UDPdrivers/net/ethernet/sfc/filter.h drivers/net/ethernet/sfc/ptp.c+71 -120 repliesApplied
3/3sfc: support PTP over Ethernetdrivers/net/ethernet/sfc/ptp.c+19 -20 repliesApplied

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEdward Cree
SeriesR-b
1/3
2/3
3/3

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/3] sfc: add support for PTP over IPv6 and 802.3

Most recent cards (8000 series and newer) had enough hardware support for this, but it was not enabled in the driver. The transmission of PTP packets over these protocols was already added in commit bd4a2697e5e2 ("sfc: use hardware tx timestamps for more than PTP"), but receiving them was already unsupported so synchronization didn't happen.

These patches add support for timestamping received packets over IPv6/UPD and IEEE802.3.

v2: fixed weird indentation in efx_ptp_init_filter
v3: fixed bug caused by usage of htons in PTP_EVENT_PORT definition.
It was used in more places, where htons was used too, so using it 2 times leave it again in host order. I didn't detected it in my tests because it only affected if timestamping through the MC, but the model I used do it through the MAC. Detected by kernel test robot <[email protected]>
v4: removed inline specifiers from 2 local functions
v5: restored deleted comment with useful explanation about packets
reordering. Deleted useless whitespaces.

Íñigo Huguet (3):
sfc: allow more flexible way of adding filters for PTP
sfc: support PTP over IPv6/UDP
sfc: support PTP over Ethernet

 drivers/net/ethernet/sfc/filter.h |  22 +++++
 drivers/net/ethernet/sfc/ptp.c    | 128 +++++++++++++++++++++---------
 2 files changed, 111 insertions(+), 39 deletions(-)
Signature · 1 line
2.34.1