From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: [PATCH net-next 0/2] net: dsa: mv88e6xxx: Improve PTP access latency Date: Thu, 15 Feb 2018 14:38:33 +0100 Message-ID: <1518701915-14346-1-git-send-email-andrew@lunn.ch> Cc: netdev , Vivien Didelot , Andrew Lunn To: David Miller Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:56580 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032677AbeBONjq (ORCPT ); Thu, 15 Feb 2018 08:39:46 -0500 Sender: netdev-owner@vger.kernel.org List-ID: 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