All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>,
	Vivien Didelot <vivien.didelot@savoirfairelinux.com>,
	Andrew Lunn <andrew@lunn.ch>
Subject: [PATCH net-next 0/2] net: dsa: mv88e6xxx: Improve PTP access latency
Date: Thu, 15 Feb 2018 14:38:33 +0100	[thread overview]
Message-ID: <1518701915-14346-1-git-send-email-andrew@lunn.ch> (raw)

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

             reply	other threads:[~2018-02-15 13:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 13:38 Andrew Lunn [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1518701915-14346-1-git-send-email-andrew@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.