]> git.baikalelectronics.ru Git - 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)
commit67adb55e199fb07a7c90e7b437c54f8183d78273
tree0848b88c296f9b1113af451d0ce05b79e4c063f1
parent4bce0b9457b4e7331f3c413070e40218a70066fa
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: 3d485dfff1de ('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