]> 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)
commit6c22cc7c6b0d03bb1a35d45d28ceccaa5061b6bf
treed2e7b6b914c95eb2f2bfbb53540381a06a4320cc
parent2a19a03de09a29079fafcb164d87e48e4771ac7e
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: 95cfb880aeb6 ("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