Skip to content

Commit 94d6517

Browse files
roidayankuba-moo
authored andcommitted
net/mlx5e: TC, Fix cloned flow attr instance dests are not zeroed
On multi table split the driver creates a new attr instance with data being copied from prev attr instance zeroing action flags. Also need to reset dests properties to avoid incorrect dests per attr. Fixes: 8300f22 ("net/mlx5e: Create new flow attr for multi table actions") Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f382a24 commit 94d6517

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,6 +3633,10 @@ mlx5e_clone_flow_attr_for_post_act(struct mlx5_flow_attr *attr,
36333633
attr2->action = 0;
36343634
attr2->flags = 0;
36353635
attr2->parse_attr = parse_attr;
3636+
attr2->esw_attr->out_count = 0;
3637+
attr2->esw_attr->split_count = 0;
3638+
attr2->dest_chain = 0;
3639+
attr2->dest_ft = NULL;
36363640
return attr2;
36373641
}
36383642

0 commit comments

Comments
 (0)