diff options
author | Oz Shlomo <ozsh@nvidia.com> | 2023-02-21 16:24:39 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-03-15 23:50:18 +0100 |
commit | b23bf10cca59b2955fa5c2b5e4f753962b4f88ca (patch) | |
tree | dddc9373ed1c2294553eb93803ddc3405bcd6c5c /drivers | |
parent | net/mlx5e: TC, fix missing error code (diff) | |
download | linux-b23bf10cca59b2955fa5c2b5e4f753962b4f88ca.tar.xz linux-b23bf10cca59b2955fa5c2b5e4f753962b4f88ca.zip |
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: cca7eac13856 ("net/mlx5e: TC, store tc action cookies per attr")
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index d2e191ee0704..6bfed633343a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -3752,7 +3752,7 @@ mlx5e_clone_flow_attr_for_post_act(struct mlx5_flow_attr *attr, parse_attr->filter_dev = attr->parse_attr->filter_dev; attr2->action = 0; attr2->counter = NULL; - attr->tc_act_cookies_count = 0; + attr2->tc_act_cookies_count = 0; attr2->flags = 0; attr2->parse_attr = parse_attr; attr2->dest_chain = 0; |