RDMA/mlx5: Fix timestamp default mode
authorMaor Gottlieb <maorg@nvidia.com>
Wed, 3 Mar 2021 12:39:20 +0000 (14:39 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:57 +0000 (11:01 -0800)
commit8256c69b2d9c35e94d0e424184c0d27b59bdee12
treed2e7b6b914c95eb2f2bfbb53540381a06a4320cc
parent4806f1e2fee84c053cb68cd5be5817170bf0aab6
RDMA/mlx5: Fix timestamp default mode

1. Don't set the ts_format bit to default when it reserved - device is
   running in the old mode (free running).
2. XRC doesn't have a CQ therefore the ts format in the QP
   context should be default / free running.
3. Set ts_format to WQ.

Fixes: 2fe8d4b87802 ("RDMA/mlx5: Fail QP creation if the device can not support the CQE TS")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c