X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fvdpa%2Fmlx5%2Fmlx5_vdpa_steer.c;h=1fcd24c002f4f38b52f63990d868f19a294280d2;hb=8c8c3b01c3b583ec2f485ef279254f5a9e3c419c;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..1fcd24c002 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c @@ -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,