diff mbox

[1/5] linux-generic: crypto: add simple odp_crypto_get_operation_compl_packet impl

Message ID 1410397827-2758-2-git-send-email-victor.kamensky@linaro.org
State New
Headers show

Commit Message

vkamensky Sept. 11, 2014, 1:10 a.m. UTC
linux-generic declares but missing odp_crypto_get_operation_compl_packet
function implementation. Add simple one that just convert buffer to
packet.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
---
 platform/linux-generic/odp_crypto.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index fae546c..8782d99 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -463,3 +463,9 @@  odp_crypto_get_ses_create_compl_session(odp_buffer_t completion_event,
 	result = odp_buffer_addr(completion_event);
 	*session = result->session;
 }
+
+odp_packet_t
+odp_crypto_get_operation_compl_packet(odp_buffer_t completion_event)
+{
+	return odp_packet_from_buffer(completion_event);
+}