OSDN Git Service

RDMA/mlx5: Fail QP creation if the device can not support the CQE TS
authorAharon Landau <aharonl@nvidia.com>
Tue, 9 Feb 2021 13:11:07 +0000 (15:11 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Feb 2021 18:48:47 +0000 (14:48 -0400)
commit2fe8d4b87802dcde7fa015229c84bb726f631b4d
tree8d3b9d82a7784ddf273626d7385f1e85a89b50e8
parenta6a217dddcd544f6b75f0e2a60b6e84c1d494b7e
RDMA/mlx5: Fail QP creation if the device can not support the CQE TS

In ConnectX6Dx device, HW can work in real time timestamp mode according
to the device capabilities per RQ/SQ/QP.

When the flag IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION is set, the user
expect to get TS on the CQEs in free running format, so we need to fail
the QP creation if the current mode of the device doesn't support it.

Link: https://lore.kernel.org/r/20210209131107.698833-3-leon@kernel.org
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c