Running Sample Applications
72
Getting Started Guide
The software package includes a version of the firmware optimized for small cryptography
packets. In order to run the sample code with this firmware, the following steps must be
performed.
An example configuration file is included in the package.
# cp $ICP_ROOT/quickassist/config/c2xxx_qa_dev0.conf.v1.wireless
/etc/ c2xxx_qa_dev0.conf
Restart the acceleration service using the command:
# /etc/init.d/qat_service restart
Run the sample code using the command:
# cd
$ICP_ROOT/quickassist/lookaside/access_layer/src/sample_code/build
#
./cpa_sample_code wirelessFirmware=1
Note:
The wirelessFirmware=1 parameter must be specified when the wireless firmware is used. The
following error messages are displayed if the parameter is not specified.
There are no crypto instances available setupSymmetricTest():1135
Failed to start Crypto services
main():636 Error calling
setupCipherTest
Note:
The wireless firmware must be used if the wirelessFirmware=1 parameter is specified. The
following error messages are displayed if you specify the parameter and the firmware is not being
used.
[error] SalCtrl_CryptoInit() - : Failed to get Cy0AcceleratorNumber
from configuration file
[error] SalCtrl_ServiceEventInit() - : Failed to initialise all
crypto
instances
ADF_PROXY err: adf_user_subsystemInit: Failed to initialise
Subservice
SAL
[error] SalCtrl_ServiceEventStart() - : Private data is NULL
ADF_PROXY err: adf_user_subsystemStart: Failed to start Subservice
SAL
10.1.3
Test Results
When running the application in kernel space, open a second terminal window, log in as root,
and issue the following command:
# tail -f /var/log/messages
When running the application in user space, the results are printed to the terminal window in
which the application is launched.
Here is an example of the log messages created during the test:
-------------------------------
Algorithm Chaining - AES256-CBC HMAC-SHA512
Number of threads 2
Total Submissions 20
Total Responses 20
Packet Size 512
-------------------------------