mbox series

[v2,net-next,0/3] Improvements to SJA1105 DSA RX timestamping

Message ID 20191227130230.21541-1-olteanv@gmail.com
Headers show
Series Improvements to SJA1105 DSA RX timestamping | expand

Message

Vladimir Oltean Dec. 27, 2019, 1:02 p.m. UTC
This series makes the sja1105 DSA driver use a dedicated kernel thread
for RX timestamping, a process which is time-sensitive and otherwise a
bit fragile. This allows users to customize their system (probabil an
embedded PTP switch) fully and allocate the CPU bandwidth for the driver
to expedite the RX timestamps as quickly as possible.

While doing this conversion, add a function to the PTP core for
cancelling this kernel thread (function which I found rather strange to
be missing).

Vladimir Oltean (3):
  ptp: introduce ptp_cancel_worker_sync
  net: dsa: sja1105: Use PTP core's dedicated kernel thread for RX
    timestamping
  net: dsa: sja1105: Empty the RX timestamping queue on PTP settings
    change

 drivers/net/dsa/sja1105/sja1105_ptp.c | 36 +++++++++++++--------------
 drivers/net/dsa/sja1105/sja1105_ptp.h |  1 +
 drivers/ptp/ptp_clock.c               |  6 +++++
 include/linux/dsa/sja1105.h           |  2 --
 include/linux/ptp_clock_kernel.h      |  9 +++++++
 5 files changed, 34 insertions(+), 20 deletions(-)

Comments

David Miller Dec. 31, 2019, 4:31 a.m. UTC | #1
From: Vladimir Oltean <olteanv@gmail.com>
Date: Fri, 27 Dec 2019 15:02:27 +0200

> This series makes the sja1105 DSA driver use a dedicated kernel thread
> for RX timestamping, a process which is time-sensitive and otherwise a
> bit fragile. This allows users to customize their system (probabil an
> embedded PTP switch) fully and allocate the CPU bandwidth for the driver
> to expedite the RX timestamps as quickly as possible.
> 
> While doing this conversion, add a function to the PTP core for
> cancelling this kernel thread (function which I found rather strange to
> be missing).

Series applied, thanks Vladimir.