We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d100898 + 8a3a592 commit a69039bCopy full SHA for a69039b
1 file changed
linuxkm/lkcapi_glue.c
@@ -56,8 +56,14 @@
56
#ifndef WOLFSSL_LINUXKM_LKCAPI_PRIORITY
57
/* Larger number means higher priority. The highest in-tree priority is
58
* 4001, in the Cavium driver.
59
+ *
60
+ * Note bene, when the kernel dynamically constructs compound algorithms, it
61
+ * computes their priorities by multiplying the priority of the base
62
+ * algorithm by up to 10, and/or adding to it the priority of a second base
63
+ * algorithm, or a constant up to 200, so it's not safe to use a value near
64
+ * INT_MAX here.
65
*/
- #define WOLFSSL_LINUXKM_LKCAPI_PRIORITY INT_MAX
66
+ #define WOLFSSL_LINUXKM_LKCAPI_PRIORITY 100000
67
#endif
68
69
#ifdef CONFIG_CRYPTO_MANAGER_EXTRA_TESTS
0 commit comments