All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: dsa: mv88e6xxx: Improve PTP access latency
@ 2018-02-15 13:38 Andrew Lunn
  2018-02-15 13:38 ` [PATCH net-next 1/2] net: dsa: mv88e6xxx: Release mutex between each statistics read Andrew Lunn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Lunn @ 2018-02-15 13:38 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Vivien Didelot, Andrew Lunn

PTP needs to retrieve the hardware timestamps from the switch device
in a low latency manor. However ethtool -S and bridge fdb show can
hold the switch register access mutex for a long time. These patches
changes the reading the statistics and the ATU so that the mutex is
released and taken again between each statistic or ATU entry. The PTP
code can then interleave its access to the hardware, keeping its
latency low.

Andrew Lunn (2):
  net: dsa: mv88e6xxx: Release mutex between each statistics read
  net: dsa: mv88e6xxx: Release mutex between each ATU read

 drivers/net/dsa/mv88e6xxx/chip.c | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-16 20:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15 13:38 [PATCH net-next 0/2] net: dsa: mv88e6xxx: Improve PTP access latency Andrew Lunn
2018-02-15 13:38 ` [PATCH net-next 1/2] net: dsa: mv88e6xxx: Release mutex between each statistics read Andrew Lunn
2018-02-15 13:38 ` [PATCH net-next 2/2] net: dsa: mv88e6xxx: Release mutex between each ATU read Andrew Lunn
2018-02-16 20:37 ` [PATCH net-next 0/2] net: dsa: mv88e6xxx: Improve PTP access latency David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.