diff options
author | David S. Miller <davem@davemloft.net> | 2021-03-10 15:23:55 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-10 15:23:55 -0800 |
commit | 1e1e73ee1adf8047f186fa519b7be4e8f895e35b (patch) | |
tree | e74fa2f123174140dddf319fc9ef7e27e910743b /include/linux/mlx5/qp.h | |
parent | 8373a0fe9c7160a55482effa8a3f725efd3f8434 (diff) | |
parent | 84076c4c800d1be77199a139d65b8b136a61422e (diff) |
Merge tag 'mlx5-fixes-2021-03-10' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux
mlx5-fixes-2021-03-10
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/qp.h')
-rw-r--r-- | include/linux/mlx5/qp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h index d75ef8aa8fac..b7deb790f257 100644 --- a/include/linux/mlx5/qp.h +++ b/include/linux/mlx5/qp.h @@ -547,4 +547,11 @@ static inline const char *mlx5_qp_state_str(int state) } } +static inline int mlx5_get_qp_default_ts(struct mlx5_core_dev *dev) +{ + return !MLX5_CAP_ROCE(dev, qp_ts_format) ? + MLX5_QPC_TIMESTAMP_FORMAT_FREE_RUNNING : + MLX5_QPC_TIMESTAMP_FORMAT_DEFAULT; +} + #endif /* MLX5_QP_H */ |