net/mlx5: Introduce modify header structures, commands and steering action definitions
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / fs_core.c
index 2478516a61e2ea547f5ae8af0c3aae7228e64db9..27ff815600f78dfc0e363fe3852663e1518d09c2 100644 (file)
@@ -476,6 +476,7 @@ static struct fs_fte *alloc_fte(struct mlx5_flow_act *flow_act,
        fte->index = index;
        fte->action = flow_act->action;
        fte->encap_id = flow_act->encap_id;
+       fte->modify_id = flow_act->modify_id;
 
        return fte;
 }
@@ -1136,7 +1137,7 @@ static struct mlx5_flow_group *create_autogroup(struct mlx5_flow_table *ft,
                                                u32 *match_criteria)
 {
        int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in);
-       struct list_head *prev = ft->node.children.prev;
+       struct list_head *prev = &ft->node.children;
        unsigned int candidate_index = 0;
        struct mlx5_flow_group *fg;
        void *match_criteria_addr;