|
@@ -848,6 +848,22 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (field_avail(typeof(resp), striding_rq_caps, uhw->outlen)) {
|
|
|
+ resp.response_length += sizeof(resp.striding_rq_caps);
|
|
|
+ if (MLX5_CAP_GEN(mdev, striding_rq)) {
|
|
|
+ resp.striding_rq_caps.min_single_stride_log_num_of_bytes =
|
|
|
+ MLX5_MIN_SINGLE_STRIDE_LOG_NUM_BYTES;
|
|
|
+ resp.striding_rq_caps.max_single_stride_log_num_of_bytes =
|
|
|
+ MLX5_MAX_SINGLE_STRIDE_LOG_NUM_BYTES;
|
|
|
+ resp.striding_rq_caps.min_single_wqe_log_num_of_strides =
|
|
|
+ MLX5_MIN_SINGLE_WQE_LOG_NUM_STRIDES;
|
|
|
+ resp.striding_rq_caps.max_single_wqe_log_num_of_strides =
|
|
|
+ MLX5_MAX_SINGLE_WQE_LOG_NUM_STRIDES;
|
|
|
+ resp.striding_rq_caps.supported_qpts =
|
|
|
+ BIT(IB_QPT_RAW_PACKET);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (uhw->outlen) {
|
|
|
err = ib_copy_to_udata(uhw, &resp, resp.response_length);
|
|
|
|