OSDN Git Service

crypto: algapi - create function to add request in front of queue
authorIuliana Prodan <iuliana.prodan@nxp.com>
Tue, 28 Apr 2020 15:49:03 +0000 (18:49 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 May 2020 05:30:40 +0000 (15:30 +1000)
commitec6e2bf33b54cc3351bd702452e5d016b8f9d2f4
tree66e745497119d160bcbcbaadf806f8515e72f223
parent3e37f04f2bf3dd86432785e15182793a8a8ef00e
crypto: algapi - create function to add request in front of queue

Add crypto_enqueue_request_head function that enqueues a
request in front of queue.
This will be used in crypto-engine, on error path. In case a request
was not executed by hardware, enqueue it back in front of queue (to
keep the order of requests).

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
include/crypto/algapi.h