]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Refactor code to enable checks for queue space.
authorGary R Hook <gary.hook@amd.com>
Wed, 27 Jul 2016 00:10:13 +0000 (19:10 -0500)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:54:51 +0000 (10:54 -0700)
commitc84384dd53be3243338b0ac1b36210c95ac0c601
tree77c8d66280e5fc880e5eb99a02cccc4c87510918
parenta9eeb597566a7bf13a77aa050931666f23fbf608
crypto: ccp - Refactor code to enable checks for queue space.

Orabug: 26644685

Available queue space is used to decide (by counting free slots)
if we have to put a command on hold or if it can be sent
to the engine immediately.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit bb4e89b34d1bf46156b7e880a0f34205fb7ce2a5)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dev-v3.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c