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

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

Also apologizing for the long pauses in submitting V2 for review, and the
changing hands of the main internal reviewer. I will be responsible to finish
this submission process from now on.

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


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     |  149 +++++++++++++++++++++
 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, 505 insertions(+), 20 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx4/en_clock.c

-- 
1.7.8.2

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

end of thread, other threads:[~2013-04-23 13:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 11:56 [PATCH net-next V2 0/5] net/mlx4: HW timestamping support Amir Vadai
2013-04-22 11:56 ` [PATCH net-next V2 1/5] net/mlx4_core: Add timestamping device capability Amir Vadai
2013-04-22 17:10   ` Sergei Shtylyov
2013-04-23  7:01     ` Amir Vadai
2013-04-22 11:56 ` [PATCH net-next V2 2/5] net/mlx4_core: Read HCA frequency and map internal clock Amir Vadai
2013-04-22 11:56 ` [PATCH net-next V2 3/5] net/mlx4_en: Add HW timestamping (TS) support Amir Vadai
2013-04-22 11:56 ` [PATCH net-next V2 4/5] net/mlx4_en: Support software timestamping Amir Vadai
2013-04-22 11:56 ` [PATCH net-next V2 5/5] net/mlx4_en: Add a service task Amir Vadai
2013-04-22 19:01   ` Eric Dumazet
2013-04-23 13:56     ` Amir Vadai

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).