]> git.droids-corp.org - dpdk.git/blobdiff - drivers/vdpa/mlx5/mlx5_vdpa_steer.c
vdpa/mlx5: fix compatibility with MISC4
[dpdk.git] / drivers / vdpa / mlx5 / mlx5_vdpa_steer.c
index 406c7be17f600f90bb58de617d7c956428f31b9e..1fcd24c002f4f38b52f63990d868f19a294280d2 100644 (file)
@@ -139,10 +139,12 @@ mlx5_vdpa_rss_flows_create(struct mlx5_vdpa_priv *priv)
                uint32_t buf[MLX5_ST_SZ_DW(fte_match_param)];
                /**< Matcher value. This value is used as the mask or a key. */
        } matcher_mask = {
-                               .size = sizeof(matcher_mask.buf),
+                               .size = sizeof(matcher_mask.buf) -
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4),
                        },
          matcher_value = {
-                               .size = sizeof(matcher_value.buf),
+                               .size = sizeof(matcher_value.buf) -
+                                       MLX5_ST_SZ_BYTES(fte_match_set_misc4),
                        };
        struct mlx5dv_flow_matcher_attr dv_attr = {
                .type = IBV_FLOW_ATTR_NORMAL,