From eb721451720eb999cadb6d494ac4358c5f8acf77 Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Thu, 1 Aug 2024 20:57:53 +0200 Subject: [PATCH] accel/mlx5: Fix mkey cache clear for merged task That is a leftover of the platform driver rework. Before we kept 2 tasks in the sequence and switched to the decrypt task of CRC32C_AND_DECRYPT to clear the mkey cache. But after refactoring, we saved all necessary fields in one task and immidiately release the 2nd task. Signed-off-by: Alexey Marchuk Change-Id: I902015b303c6191a956687a826d5da13c1e8b7b6 --- module/accel/mlx5/accel_mlx5.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/module/accel/mlx5/accel_mlx5.c b/module/accel/mlx5/accel_mlx5.c index 71af9c1a96d..a6335733dd9 100644 --- a/module/accel/mlx5/accel_mlx5.c +++ b/module/accel/mlx5/accel_mlx5.c @@ -3424,13 +3424,6 @@ accel_mlx5_task_clear_mkey_cache(struct accel_mlx5_task *task, struct accel_mlx5 if (task->base.cached_lkey) { *task->base.cached_lkey = 0; } - /* Clear the mkey cache when the decrypt task is merged into check CRC. */ - if (task->mlx5_opcode == ACCEL_MLX5_OPC_CRC32C_AND_DECRYPT) { - next_task = TAILQ_NEXT(&task->base, seq_link); - if (next_task->cached_lkey) { - *next_task->cached_lkey = 0; - } - } } static void accel_mlx5_recover_qp(struct accel_mlx5_qp *qp);