netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next V3 0/5] net/mlx4: HW timestamping support
@ 2013-04-23 16:06 Amir Vadai
  2013-04-23 16:06 ` [PATCH net-next V3 1/5] net/mlx4_core: Add timestamping device capability Amir Vadai
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Amir Vadai @ 2013-04-23 16:06 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Richard Cochran, Or Gerlitz, Eugenia Emantayev,
	Amir Vadai

This V3 series of patches introduces Ethernet HW timestamping support in the
mlx4 driver.

The series is made of of five patches
1. Add timestamping device capability
2. Read HCA frequency and map internal clock
3. Add HW timestamping (TS) support --  Enable/disable HW timestamping 
   for incoming and/or outgoing packets. Add and initialize all structs and 
   callbacks needed by the kernel timestamping API.
4. Add needed call to enable software timestamping
5. Add a service task to mlx4_en to run periodic tasks. Currently only running
   a watchdog to prevent clock overflow  

The patches provide raw HW timestamps, where registeration in the 
driver as PHC class device will be done in a 2nd step, once the basic 
code is merged.

Changes from V0:
- accept HWTSTAMP_FILTER_PTP_ and HWTSTAMP_FILTER_SOME flags but 
  reply with HWTSTAMP_FILTER_ALL
- remove usage of the timecompare API
- call netdev_features_change() after changing dev->features

Changes from V1:
- get_ts_info function provided.
- watchdog function was added to catch overflows
- indentation and style fixes
- en_timestamp.c => en_clock.c
- use utility clockcounter utility functions

Changes from V2:
- mac => MAC
- no need for macro CORE_CLOCK_MASK
- changed clocksource shift to 14 to prevent overflows
- added some comments to make calculations clearer
- use NSEC_PER_SEC macro
- initialize overflow_period in jiffies and not seconds

Amir Vadai (3):
  net/mlx4_en: Add HW timestamping (TS) support
  net/mlx4_en: Support software timestamping
  net/mlx4_en: Add a service task

Eugenia Emantayev (2):
  net/mlx4_core: Add timestamping device capability
  net/mlx4_core: Read HCA frequency and map internal clock

 drivers/infiniband/hw/mlx4/cq.c                   |    2 +-
 drivers/net/ethernet/mellanox/mlx4/Makefile       |    2 +-
 drivers/net/ethernet/mellanox/mlx4/cq.c           |   10 +-
 drivers/net/ethernet/mellanox/mlx4/en_clock.c     |  151 +++++++++++++++++++++
 drivers/net/ethernet/mellanox/mlx4/en_cq.c        |   10 +-
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c   |   30 ++++
 drivers/net/ethernet/mellanox/mlx4/en_main.c      |    5 +
 drivers/net/ethernet/mellanox/mlx4/en_netdev.c    |   99 ++++++++++++++
 drivers/net/ethernet/mellanox/mlx4/en_resources.c |    3 +
 drivers/net/ethernet/mellanox/mlx4/en_rx.c        |   29 ++++-
 drivers/net/ethernet/mellanox/mlx4/en_tx.c        |   31 ++++-
 drivers/net/ethernet/mellanox/mlx4/fw.c           |   18 +++-
 drivers/net/ethernet/mellanox/mlx4/fw.h           |    1 +
 drivers/net/ethernet/mellanox/mlx4/main.c         |   79 +++++++++++
 drivers/net/ethernet/mellanox/mlx4/mlx4.h         |    6 +-
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h      |   25 ++++-
 include/linux/mlx4/cq.h                           |   16 +++
 include/linux/mlx4/device.h                       |   10 +-
 18 files changed, 507 insertions(+), 20 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx4/en_clock.c

-- 
1.7.8.2

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

end of thread, other threads:[~2013-04-28  8:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 16:06 [PATCH net-next V3 0/5] net/mlx4: HW timestamping support Amir Vadai
2013-04-23 16:06 ` [PATCH net-next V3 1/5] net/mlx4_core: Add timestamping device capability Amir Vadai
2013-04-23 16:06 ` [PATCH net-next V3 2/5] net/mlx4_core: Read HCA frequency and map internal clock Amir Vadai
2013-04-23 16:06 ` [PATCH net-next V3 3/5] net/mlx4_en: Add HW timestamping (TS) support Amir Vadai
2013-04-25 19:26   ` Richard Cochran
2013-04-28  6:33     ` Amir Vadai
2013-04-28  7:46       ` Richard Cochran
2013-04-28  8:00         ` Amir Vadai
2013-04-23 16:06 ` [PATCH net-next V3 4/5] net/mlx4_en: Support software timestamping Amir Vadai
2013-04-23 16:06 ` [PATCH net-next V3 5/5] net/mlx4_en: Add a service task Amir Vadai
2013-04-26  0:13   ` Eric Dumazet
2013-04-26  2:24     ` Or Gerlitz
2013-04-26  2:39       ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).