All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/2] mlx4_en: Add PTP support
@ 2013-12-31 17:39 Shawn Bohrer
  2013-12-31 17:39 ` [PATCH net-next v4 1/2] mlx4_en: Add PTP hardware clock Shawn Bohrer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Shawn Bohrer @ 2013-12-31 17:39 UTC (permalink / raw)
  To: David S. Miller
  Cc: Or Gerlitz, Amir Vadai, Richard Cochran, netdev, tomk,
	Hadar Hen Zion, Shawn Bohrer

From: Shawn Bohrer <sbohrer@rgmadvisors.com>

This adds support to the mlx4_en driver to support running a PTP client
with hardware timestamp support.  It also allows synchronization of the
hardware timestamped packets with the system clock.

v2:
* Implemented mlx4_en_phc_adjfreq() in software.
* Protected timecounter with a spinlock
* Set the phc_index in mlx4_en_get_ts_info()
* Use a hard-coded ptp_clock_info.name

v3: is code identical to v2.  I simply finished testing it with
linuxptp, cleaned up the commit description a little and sent to davem.

v4:
* Initialize clock_lock
* Use reader/writer spinlock for clock_lock to improve performance when
 timetamping is enabled.

Shawn Bohrer (2):
  mlx4_en: Add PTP hardware clock
  mlx4_en: Only cycle port if HW timestamp config changes

 drivers/net/ethernet/mellanox/mlx4/en_clock.c   |  198 ++++++++++++++++++++++-
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c |    3 +
 drivers/net/ethernet/mellanox/mlx4/en_main.c    |    3 +
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h    |    6 +
 4 files changed, 202 insertions(+), 8 deletions(-)

-- 
1.7.7.6

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

end of thread, other threads:[~2014-01-02  8:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 17:39 [PATCH net-next v4 0/2] mlx4_en: Add PTP support Shawn Bohrer
2013-12-31 17:39 ` [PATCH net-next v4 1/2] mlx4_en: Add PTP hardware clock Shawn Bohrer
2014-01-01  8:50   ` Hadar Hen-Zion
2014-01-02  3:06     ` David Miller
2014-01-01  9:46   ` [PATCH net-next v4 1/2] " Richard Cochran
2013-12-31 17:39 ` [PATCH net-next v4 2/2] mlx4_en: Only cycle port if HW timestamp config changes Shawn Bohrer
2014-01-01  8:52   ` Hadar Hen-Zion
2014-01-01  9:47   ` [PATCH net-next v4 2/2] " Richard Cochran
2014-01-02  8:32 ` [PATCH net-next v4 0/2] mlx4_en: Add PTP support 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.