Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: DR, Using sq ts format when RoCE is disabled
[ Upstream commit cebd491 ] When creating a QP in SW steering, one of the attributes is TS format (timestamp). In some devices, we have a limitation that all QPs should have the same ts_format. The qp_ts_format cap resides under the RoCE caps table, and the cap is not queried when RoCE is disabled. Consider the case when the system is configured to run with REAL_TIME_TS format (0x2), some QPs are created, and we disable RoCE. When trying to construct a new QP, we can't use the qp_ts_format, that is queried from the RoCE caps table. That leads to passing 0x0 (FREE_RUNNING_TS) as the value of the qp_ts_format, which is different than the ts_format of the previous QPs REAL_TIME_TS format (0x2) and the creation will fail. To resolve this, we will read the sq_ts_format, which also reflect the supported ts format for the QP when RoCE is disabled, and override it with qp_ts_format from the RoCE caps table if RoCE is enabled. Fixes: ed504ab ("mlx5: DR, Set QP timestamp mode to default") Signed-off-by: Itamar Gozlan <igozlan@nvidia.com> Signed-off-by: Alex Vesker <valex@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
- Loading branch information