[v2,07/10] net/mlx5/hws: add vhca identifier ID to the caps
Checks
Commit Message
And read it in the query_cap function
Signed-off-by: Erez Shitrit <erezsh@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_cmd.c | 3 +++
drivers/net/mlx5/hws/mlx5dr_cmd.h | 1 +
2 files changed, 4 insertions(+)
@@ -837,6 +837,9 @@ int mlx5dr_cmd_query_caps(struct ibv_context *ctx,
MLX5_GET64(query_hca_cap_out, out,
capability.cmd_hca_cap.match_definer_format_supported);
+ caps->vhca_id = MLX5_GET(query_hca_cap_out, out,
+ capability.cmd_hca_cap.vhca_id);
+
caps->sq_ts_format = MLX5_GET(query_hca_cap_out, out,
capability.cmd_hca_cap.sq_ts_format);
@@ -176,6 +176,7 @@ struct mlx5dr_cmd_query_caps {
uint8_t sq_ts_format;
uint64_t definer_format_sup;
uint32_t trivial_match_definer;
+ uint32_t vhca_id;
bool cross_vhca_resources;
char fw_ver[64];
};