]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/mlx4: Add support for CQ time-stamping
authorMatan Barak <matanb@mellanox.com>
Thu, 11 Jun 2015 13:35:27 +0000 (16:35 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:10 +0000 (14:49 -0400)
commit4b664c4355b251a142d9d57d0ca0298b497f8428
treea6cc0221c89db620f60582a1208a5e4a432ca88f
parent52033cfb5aab2a54e238e93c9e52f61c2c5708aa
IB/mlx4: Add support for CQ time-stamping

This includes:

* support allocation of CQ with the TIMESTAMP_COMPLETION creation flag.

* add timestamp_mask and hca_core_clock to query_device, reporting the
  number of supported timestamp bits (mask) and the hca_core_clock frequency.

* return hca core clock's offset in query_device vendor's data,
  this is needed in order to read the HCA's core clock.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h