08 Oct, 2015
1 commit
-
Replace the usage of BUG_ON with WARN_ON and return an error.
Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu
27 Feb, 2015
1 commit
-
Changes to address warnings and errors reported by the checkpatch
script.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu
24 Sep, 2014
1 commit
-
If the ccp is built as a built-in module, then ccp-crypto (whether
built as a module or a built-in module) will be able to load and
it will register its crypto algorithms. If the system does not have
a CCP this will result in -ENODEV being returned whenever a command
is attempted to be queued by the registered crypto algorithms.Add an API, ccp_present(), that checks for the presence of a CCP
on the system. The ccp-crypto module can use this to determine if it
should register it's crypto alogorithms.Cc: stable@vger.kernel.org
Reported-by: Scot Doyle
Signed-off-by: Tom Lendacky
Tested-by: Scot Doyle
Signed-off-by: Herbert Xu
27 Feb, 2014
3 commits
-
When the crypto layer is able to queue up a command for processing
by the CCP on the initial call to ccp_crypto_enqueue_request and
the CCP returns -EBUSY, then if the backlog flag is not set the
command needs to be freed and not added to the active command list.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu -
Invoke the callback routine associated with the crypto context
if an error is encountered sending the command to the CCP during
backlog processing. This is needed to free any resources used
by the command.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu -
If a CCP command has been queued for processing at the
crypto layer then, when dequeueing it for processing, the
"can backlog" flag must be set so that the request isn't
lost if the CCP backlog queue limit is reached.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu
09 Feb, 2014
2 commits
-
Move to a single queue to serialize requests within a tfm. When
testing using IPSec with a large number of network connections
the per cpu tfm queuing logic was not working properly.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu -
Introduce module parameters that allow for disabling of a
crypto algorithm by not registering the algorithm with the
crypto API.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu
05 Dec, 2013
1 commit
-
These routines provide the support for the interface between the crypto API
and the AMD CCP. This includes insuring that requests associated with a
given tfm on the same cpu are processed in the order received.Signed-off-by: Tom Lendacky
Signed-off-by: Herbert Xu