aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2017-07-12 16:44:20 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-12-27 21:41:45 +0300
commita781cc2773b10264d82eecba65150fd01fb1ace9 (patch)
tree2088c80a117b37cc447da3dfaa3cfdf05b413f49 /platform/linux-generic
parent7b9d96d6fba4edf68ba7ed80b240345b02757b57 (diff)
api: crypto: revert deprecation of crypto completion API
It was decided that it would be benefitable to live with both API types at this point, as odp_crypto_compl_t was available for some time. So undeprecate odp_crypto_compl_t and related functionality. Validation tests also provide necessary tests for pref_mode and for completion event. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r--platform/linux-generic/include/odp/api/plat/crypto_types.h3
-rw-r--r--platform/linux-generic/include/odp/api/plat/event_types.h3
-rw-r--r--platform/linux-generic/odp_crypto.c4
-rw-r--r--platform/linux-generic/odp_event.c2
4 files changed, 2 insertions, 10 deletions
diff --git a/platform/linux-generic/include/odp/api/plat/crypto_types.h b/platform/linux-generic/include/odp/api/plat/crypto_types.h
index 23e1cc42b..2cc747eb2 100644
--- a/platform/linux-generic/include/odp/api/plat/crypto_types.h
+++ b/platform/linux-generic/include/odp/api/plat/crypto_types.h
@@ -22,7 +22,6 @@ extern "C" {
#if ODP_ABI_COMPAT == 1
#include <odp/api/abi/crypto.h>
#else
-#include <odp/api/deprecated.h>
/** @ingroup odp_crypto
* @{
@@ -31,7 +30,7 @@ extern "C" {
#define ODP_CRYPTO_SESSION_INVALID (0xffffffffffffffffULL)
typedef uint64_t odp_crypto_session_t;
-typedef ODP_HANDLE_T(ODP_DEPRECATE(odp_crypto_compl_t));
+typedef ODP_HANDLE_T(odp_crypto_compl_t);
/**
* @}
diff --git a/platform/linux-generic/include/odp/api/plat/event_types.h b/platform/linux-generic/include/odp/api/plat/event_types.h
index 4dc7a93c5..9bff607a5 100644
--- a/platform/linux-generic/include/odp/api/plat/event_types.h
+++ b/platform/linux-generic/include/odp/api/plat/event_types.h
@@ -23,7 +23,6 @@ extern "C" {
#include <odp/api/abi/event.h>
#else
-#include <odp/api/deprecated.h>
#include <odp/api/std_types.h>
#include <odp/api/plat/strong_types.h>
@@ -39,7 +38,7 @@ typedef enum odp_event_type_t {
ODP_EVENT_BUFFER = 1,
ODP_EVENT_PACKET = 2,
ODP_EVENT_TIMEOUT = 3,
- ODP_DEPRECATE(ODP_EVENT_CRYPTO_COMPL) = 4,
+ ODP_EVENT_CRYPTO_COMPL = 4,
ODP_EVENT_IPSEC_STATUS = 5
} odp_event_type_t;
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index de73ee9d6..88114a3dc 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -878,9 +878,7 @@ odp_crypto_operation(odp_crypto_op_param_t *param,
ODP_EVENT_PACKET_BASIC);
/* Fill in result */
-#if ODP_DEPRECATED_API
local_result.ctx = param->ctx;
-#endif
local_result.pkt = out_pkt;
local_result.cipher_status = packet_result.cipher_status;
local_result.auth_status = packet_result.auth_status;
@@ -1017,7 +1015,6 @@ int32_t odp_random_test_data(uint8_t *buf, uint32_t len, uint64_t *seed)
return len;
}
-#if ODP_DEPRECATED_API
odp_crypto_compl_t odp_crypto_compl_from_event(odp_event_t ev)
{
/* This check not mandated by the API specification */
@@ -1054,7 +1051,6 @@ uint64_t odp_crypto_compl_to_u64(odp_crypto_compl_t hdl)
{
return _odp_pri(hdl);
}
-#endif
void odp_crypto_session_param_init(odp_crypto_session_param_t *param)
{
diff --git a/platform/linux-generic/odp_event.c b/platform/linux-generic/odp_event.c
index 696774ec3..991d0e17d 100644
--- a/platform/linux-generic/odp_event.c
+++ b/platform/linux-generic/odp_event.c
@@ -48,11 +48,9 @@ void odp_event_free(odp_event_t event)
case ODP_EVENT_TIMEOUT:
odp_timeout_free(odp_timeout_from_event(event));
break;
-#if ODP_DEPRECATED_API
case ODP_EVENT_CRYPTO_COMPL:
odp_crypto_compl_free(odp_crypto_compl_from_event(event));
break;
-#endif
default:
ODP_ABORT("Invalid event type: %d\n", odp_event_type(event));
}