From af4a86d4464f13d85a81f6c90067dfede005e315 Mon Sep 17 00:00:00 2001 From: Ori Kam Date: Sun, 14 Apr 2019 20:18:55 +0000 Subject: [PATCH] net/mlx5: fix initialization for flow group The flow group should be initialized. For example selecting if the encapsulation is for root or private tables is based on the flow->group value. Fixes: 4f84a19779ca ("net/mlx5: add Direct Rules API") Signed-off-by: Ori Kam Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow_dv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 2f777ecab2..c2a2fc6239 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -3624,6 +3624,7 @@ flow_dv_translate(struct rte_eth_dev *dev, struct mlx5_flow_dv_tag_resource tag_resource; uint32_t modify_action_position = UINT32_MAX; + flow->group = attr->group; if (attr->transfer) res.ft_type = MLX5DV_FLOW_TABLE_TYPE_FDB; if (priority == MLX5_FLOW_PRIO_RSVD) -- 2.20.1