X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fvdpa%2Fmlx5%2Fmlx5_vdpa_steer.c;h=383f003966b879db722db2526861163d8232821e;hb=4ad8bc2fc7857a92aa0bb147529859358c5acc4f;hp=406c7be17f600f90bb58de617d7c956428f31b9e;hpb=9f09b1ca15c57ecdd6af793ec7ca776d7cb2e313;p=dpdk.git diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c index 406c7be17f..383f003966 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c @@ -139,10 +139,14 @@ 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) - + MLX5_ST_SZ_BYTES(fte_match_set_misc5), }, matcher_value = { - .size = sizeof(matcher_value.buf), + .size = sizeof(matcher_value.buf) - + 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,