From: Ori Kam Date: Sun, 14 Apr 2019 20:18:55 +0000 (+0000) Subject: net/mlx5: fix initialization for flow group X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=af4a86d4464f13d85a81f6c90067dfede005e315;p=dpdk.git 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 --- 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)