]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
IB/mlx4: Do not attemp to report HCA clock offset on VFs
authorMatan Barak <matanb@mellanox.com>
Wed, 1 Jul 2015 11:31:02 +0000 (14:31 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:10 +0000 (13:20 -0400)
commit8a7ff14dcb40bade309cd2ad04c746bb1d169c4e
tree0848b88c296f9b1113af451d0ce05b79e4c063f1
parentbe4b499323bf7291b491c6df51baae62f45b8404
IB/mlx4: Do not attemp to report HCA clock offset on VFs

mlx4 VFs can provide CQE raw time-stamping services, but they
don't have the hca core clock mapped to their PCI bars.

As such, we should not attempt to query and report the clock offset
to user space for VFs. Doing so causes query_device over VFs to fail
with -ENOSUPP.

Fixes: 4b664c4355b2 ('IB/mlx4: Add support for CQ time-stamping')
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/main.c