git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash: fix out-of-memory handling in hash creation
[dpdk.git]
/
lib
/
librte_ipsec
/
ses.c
diff --git
a/lib/librte_ipsec/ses.c
b/lib/librte_ipsec/ses.c
index
1158097
..
3d51ac4
100644
(file)
--- a/
lib/librte_ipsec/ses.c
+++ b/
lib/librte_ipsec/ses.c
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2018 Intel Corporation
+ * Copyright(c) 2018
-2020
Intel Corporation
*/
#include <rte_ipsec.h>
*/
#include <rte_ipsec.h>
@@
-11,7
+11,8
@@
session_check(struct rte_ipsec_session *ss)
if (ss == NULL || ss->sa == NULL)
return -EINVAL;
if (ss == NULL || ss->sa == NULL)
return -EINVAL;
- if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE) {
+ if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE ||
+ ss->type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) {
if (ss->crypto.ses == NULL)
return -EINVAL;
} else {
if (ss->crypto.ses == NULL)
return -EINVAL;
} else {
@@
-27,7
+28,7
@@
session_check(struct rte_ipsec_session *ss)
return 0;
}
return 0;
}
-int
__rte_experimental
+int
rte_ipsec_session_prepare(struct rte_ipsec_session *ss)
{
int32_t rc;
rte_ipsec_session_prepare(struct rte_ipsec_session *ss)
{
int32_t rc;