net/mlx5e: Clear mirred devices array if the rule is split
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_tc.c
index 318083690fcd26a8134bbbc56edb6ef3dd3eabf2..c24828b688ac0aa049f3518aefdf21251da4e8d9 100644 (file)
@@ -3936,6 +3936,7 @@ parse_tc_actions(struct mlx5e_tc_act_parse_state *parse_state,
                        }
 
                        i_split = i + 1;
+                       parse_state->if_count = 0;
                        list_add(&attr->list, &flow->attrs);
                }