Skip to content

Commit b23bf10

Browse files
ozshlomoSaeed Mahameed
authored andcommitted
net/mlx5e: TC, fix cloned flow attribute
Currently the cloned flow attr resets the original tc action cookies count. Fix that by resetting the cloned flow attribute. Fixes: cca7eac ("net/mlx5e: TC, store tc action cookies per attr") Signed-off-by: Oz Shlomo <[email protected]> Reviewed-by: Paul Blakey <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 1166add commit b23bf10

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3752,7 +3752,7 @@ mlx5e_clone_flow_attr_for_post_act(struct mlx5_flow_attr *attr,
37523752
parse_attr->filter_dev = attr->parse_attr->filter_dev;
37533753
attr2->action = 0;
37543754
attr2->counter = NULL;
3755-
attr->tc_act_cookies_count = 0;
3755+
attr2->tc_act_cookies_count = 0;
37563756
attr2->flags = 0;
37573757
attr2->parse_attr = parse_attr;
37583758
attr2->dest_chain = 0;

0 commit comments

Comments
 (0)