mlxsw: spectrum_acl: Remove redundant failed_rollback from migrate_start()
authorJiri Pirko <jiri@mellanox.com>
Sun, 31 Mar 2019 06:49:38 +0000 (06:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Mar 2019 18:01:23 +0000 (11:01 -0700)
The flag is set by the caller mlxsw_sp_acl_tcam_vregion_migrate() anyway,
so don't set it here.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c

index 8811f65..a26854f 100644 (file)
@@ -1256,11 +1256,8 @@ mlxsw_sp_acl_tcam_vchunk_migrate_start(struct mlxsw_sp *mlxsw_sp,
        struct mlxsw_sp_acl_tcam_chunk *new_chunk;
 
        new_chunk = mlxsw_sp_acl_tcam_chunk_create(mlxsw_sp, vchunk, region);
-       if (IS_ERR(new_chunk)) {
-               if (ctx->this_is_rollback)
-                       vchunk->vregion->failed_rollback = true;
+       if (IS_ERR(new_chunk))
                return PTR_ERR(new_chunk);
-       }
        vchunk->chunk2 = vchunk->chunk;
        vchunk->chunk = new_chunk;
        ctx->current_vchunk = vchunk;