common/cnxk: support bandwidth profile configure
[dpdk.git] / drivers / vdpa / mlx5 / mlx5_vdpa_steer.c
index 1fcd24c..383f003 100644 (file)
@@ -140,11 +140,13 @@ mlx5_vdpa_rss_flows_create(struct mlx5_vdpa_priv *priv)
                /**< Matcher value. This value is used as the mask or a key. */
        } matcher_mask = {
                                .size = sizeof(matcher_mask.buf) -
-                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4),
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4) -
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc5),
                        },
          matcher_value = {
                                .size = sizeof(matcher_value.buf) -
-                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4),
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4) -
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc5),
                        };
        struct mlx5dv_flow_matcher_attr dv_attr = {
                .type = IBV_FLOW_ATTR_NORMAL,