summaryrefslogtreecommitdiffstats
path: root/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch')
-rw-r--r--recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch40
1 files changed, 29 insertions, 11 deletions
diff --git a/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch b/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch
index 1a7a647..c9eb5c3 100644
--- a/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch
+++ b/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch
@@ -1,4 +1,4 @@
1From 9b2b7a79fc9d9323fe9ec44de7619ea175c45bc1 Mon Sep 17 00:00:00 2001 1From 6a1fa62ffa4acd6e8e4d4f648e19363a2ed5ef74 Mon Sep 17 00:00:00 2001
2From: Yongxin Liu <yongxin.liu@windriver.com> 2From: Yongxin Liu <yongxin.liu@windriver.com>
3Date: Tue, 23 Mar 2021 09:31:25 +0000 3Date: Tue, 23 Mar 2021 09:31:25 +0000
4Subject: [PATCH 11/11] qat17: use namespace CRYPTO_INTERNAL 4Subject: [PATCH 11/11] qat17: use namespace CRYPTO_INTERNAL
@@ -11,12 +11,13 @@ Upstream-Status: Inappropriate [Code released in tarball form only]
11 11
12Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> 12Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
13--- 13---
14 quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | 3 +++ 14 quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | 3 +++
15 .../utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | 5 +++++ 15 quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c | 5 +++++
16 2 files changed, 8 insertions(+) 16 .../osal/src/linux/kernel_space/OsalCryptoInterface.c | 5 +++++
17 3 files changed, 13 insertions(+)
17 18
18diff --git a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c 19diff --git a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c
19index 413eb07..f3a371e 100644 20index db51add84592..209b3054aa8c 100644
20--- a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c 21--- a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c
21+++ b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c 22+++ b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c
22@@ -120,3 +120,6 @@ module_exit(kapi_mod_exit); 23@@ -120,3 +120,6 @@ module_exit(kapi_mod_exit);
@@ -26,14 +27,31 @@ index 413eb07..f3a371e 100644
26+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)) 27+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0))
27+MODULE_IMPORT_NS(CRYPTO_INTERNAL); 28+MODULE_IMPORT_NS(CRYPTO_INTERNAL);
28+#endif 29+#endif
30diff --git a/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c b/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c
31index 23249de3db39..0e61954c0150 100644
32--- a/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c
33+++ b/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c
34@@ -8,7 +8,12 @@
35 #include <crypto/internal/aead.h>
36 #include <crypto/internal/skcipher.h>
37 #include <crypto/aes.h>
38+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0))
39+#include <crypto/sha1.h>
40+#include <crypto/sha2.h>
41+#else
42 #include <crypto/sha.h>
43+#endif
44 #include <crypto/hash.h>
45 #include <crypto/algapi.h>
46 #include <crypto/authenc.h>
29diff --git a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c 47diff --git a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
30index de24fa0..96c29c0 100644 48index ec536607989a..9d62bb8749d5 100644
31--- a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c 49--- a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
32+++ b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c 50+++ b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
33@@ -75,6 +75,11 @@ 51@@ -76,6 +76,11 @@
34 #else 52 #endif /* end of 5.11.0, 2.6.29 checks */
35 #include <crypto/sha.h> 53 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
36 #endif 54 #include <crypto/internal/hash.h>
37+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)) 55+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0))
38+#include <crypto/internal/cipher.h> 56+#include <crypto/internal/cipher.h>
39+#include <linux/module.h> 57+#include <linux/module.h>
@@ -43,5 +61,5 @@ index de24fa0..96c29c0 100644
43 #define OSAL_MAX_SHASH_DECSIZE 512 61 #define OSAL_MAX_SHASH_DECSIZE 512
44 62
45-- 63--
462.14.5 642.29.2
47 65