]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/mlx5/mlx5_devx_cmds.c
common/mlx5: add read ASO flow hit HCA capability
[dpdk.git] / drivers / common / mlx5 / mlx5_devx_cmds.c
index 2efcdfe10ff5f04112d6dff2afa44bfeb8b2c823..b792ce1aa32702ac19bfd7bdc739ad0db3de59cf 100644 (file)
@@ -719,6 +719,9 @@ mlx5_devx_cmd_query_hca_attr(void *ctx,
        attr->regex = MLX5_GET(cmd_hca_cap, hcattr, regexp);
        attr->regexp_num_of_engines = MLX5_GET(cmd_hca_cap, hcattr,
                                               regexp_num_of_engines);
+       attr->flow_hit_aso = !!(MLX5_GET64(cmd_hca_cap, hcattr,
+                                          general_obj_types) &
+                               MLX5_GENERAL_OBJ_TYPES_CAP_FLOW_HIT_ASO);
        if (attr->qos.sup) {
                MLX5_SET(query_hca_cap_in, in, op_mod,
                         MLX5_GET_HCA_CAP_OP_MOD_QOS_CAP |