]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/lib/librte_ipsec/ses.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_ipsec / ses.c
index 11580970eadefaf8dfa7660cb000e88d20f6823c..3d51ac49861525bd9d391e197c077a8b4adc8248 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2018 Intel Corporation
+ * Copyright(c) 2018-2020 Intel Corporation
  */
 
 #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->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 {
@@ -27,7 +28,7 @@ session_check(struct rte_ipsec_session *ss)
        return 0;
 }
 
-int __rte_experimental
+int
 rte_ipsec_session_prepare(struct rte_ipsec_session *ss)
 {
        int32_t rc;