]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Avoid incrementing FTE version
authorEli Cohen <eli@mellanox.com>
Wed, 4 Mar 2020 08:32:56 +0000 (10:32 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:19:09 +0000 (23:19 -0700)
FTE version is not used anywhere in the code so avoid incrementing it.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

index 751dd5869485a25943030417999725ed0ffaa63e..44ed42e0e1c7e719a3fff97fdd1b86b4c70d037e 100644 (file)
@@ -1322,7 +1322,6 @@ add_rule_fte(struct fs_fte *fte,
 
        fte->node.active = true;
        fte->status |= FS_FTE_STATUS_EXISTING;
-       atomic_inc(&fte->node.version);
        atomic_inc(&fg->node.version);
 
 out: