Update some patch for uadk from mainline. To get more infomation, please visit the homepage: https://github.com/Linaro/uadk Signed-off-by: Yang Shen <shenyang39@huawei.com>
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From bbdb8e4337270cbc1125f9e5fa3b004e98a543d1 Mon Sep 17 00:00:00 2001
|
|
From: Kai Ye <yekai13@huawei.com>
|
|
Date: Thu, 10 Feb 2022 14:55:43 +0800
|
|
Subject: [PATCH 54/64] hisi-qm-udrv/v1: deleted a dummy branch
|
|
|
|
Deleted an invalid branch in qm_set_queue_alg_info. the software
|
|
won't go to that line of code.
|
|
|
|
Signed-off-by: Kai Ye <yekai13@huawei.com>
|
|
---
|
|
v1/drv/hisi_qm_udrv.c | 18 ++++--------------
|
|
1 file changed, 4 insertions(+), 14 deletions(-)
|
|
|
|
diff --git a/v1/drv/hisi_qm_udrv.c b/v1/drv/hisi_qm_udrv.c
|
|
index 63f346b..b457efd 100644
|
|
--- a/v1/drv/hisi_qm_udrv.c
|
|
+++ b/v1/drv/hisi_qm_udrv.c
|
|
@@ -423,20 +423,10 @@ static int qm_set_queue_alg_info(struct wd_queue *q)
|
|
} else if (!strcmp(alg, "xts(aes)") ||
|
|
!strcmp(alg, "xts(sm4)")) {
|
|
qinfo->atype = WCRYPTO_CIPHER;
|
|
- if (strstr(q->dev_path, "zip")) {
|
|
- info->sqe_size = QM_ZIP_BD_SIZE;
|
|
- info->sqe_fill[WCRYPTO_CIPHER] = qm_fill_zip_cipher_sqe;
|
|
- info->sqe_parse[WCRYPTO_CIPHER] = qm_parse_zip_cipher_sqe;
|
|
- ret = WD_SUCCESS;
|
|
- } else if (strstr(q->dev_path, "sec")) {
|
|
- priv->direction = 0;
|
|
- info->sqe_size = QM_SEC_BD_SIZE;
|
|
- info->sqe_fill[WCRYPTO_CIPHER] = qm_fill_cipher_sqe;
|
|
- info->sqe_parse[WCRYPTO_CIPHER] = qm_parse_cipher_sqe;
|
|
- ret = WD_SUCCESS;
|
|
- } else { /* To be extended */
|
|
- WD_ERR("queue xts alg engine err!\n");
|
|
- }
|
|
+ info->sqe_size = QM_ZIP_BD_SIZE;
|
|
+ info->sqe_fill[WCRYPTO_CIPHER] = qm_fill_zip_cipher_sqe;
|
|
+ info->sqe_parse[WCRYPTO_CIPHER] = qm_parse_zip_cipher_sqe;
|
|
+ ret = WD_SUCCESS;
|
|
} else { /* To be extended */
|
|
WD_ERR("queue alg err!\n");
|
|
}
|
|
--
|
|
2.25.1
|
|
|