]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b849dbfd04aff60bd244af1e45b2886105c17f4
treed2e7b6b914c95eb2f2bfbb53540381a06a4320cc
parentbcd0a8f476a3fd70af940390494ddd67b88929e5
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: 05f0b271bc1a ("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