|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1 |
|
| #
06c047b6 |
| 09-Feb-2022 |
Stephen Hemminger <[email protected]> |
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free functions found by nullfree.cocci
Signed-off-by: Stephen Hemminger <[email protected]>
show more ...
|
|
Revision tags: v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2 |
|
| #
3b2311cc |
| 28-Oct-2021 |
Fan Zhang <[email protected]> |
examples/fips_validation: fix device start
This patch fixes the missing device start for fips validation sample app.
Bugzilla ID: 842 Fixes: 261bbff75e34 ("examples: use separate crypto session mem
examples/fips_validation: fix device start
This patch fixes the missing device start for fips validation sample app.
Bugzilla ID: 842 Fixes: 261bbff75e34 ("examples: use separate crypto session mempools") Cc: [email protected]
Signed-off-by: Fan Zhang <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc1 |
|
| #
15bb59a5 |
| 12-Aug-2021 |
Ciara Power <[email protected]> |
examples/fips_validation: fix resetting pointer
The env.digest memory was freed, but the pointer was not set to NULL afterwards. This caused an "Invalid Memory" error, as the pointer tries to free t
examples/fips_validation: fix resetting pointer
The env.digest memory was freed, but the pointer was not set to NULL afterwards. This caused an "Invalid Memory" error, as the pointer tries to free twice.
Fixes: 952e10cdad5e ("examples/fips_validation: support scatter gather list") Cc: [email protected]
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]>
show more ...
|
| #
25d392e1 |
| 12-Aug-2021 |
Ciara Power <[email protected]> |
examples/fips_validation: remove unused allocation
The val.val pointer is allocated memory, however this memory is then freed in get_writeback_data() without being used beforehand. The pointer is th
examples/fips_validation: remove unused allocation
The val.val pointer is allocated memory, however this memory is then freed in get_writeback_data() without being used beforehand. The pointer is then allocated memory again before use, so the very first allocation is removed as it was unnecessary.
Fixes: f4797bae0050 ("examples/fips_validation: support plain SHA") Cc: [email protected]
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]>
show more ...
|
| #
74645f64 |
| 10-Aug-2021 |
Akhil Goyal <[email protected]> |
examples/fips_validation: remove illegal usage of API
Some of the cryptodev APIs are not allowed to be used by application directly. Hence removing the usage of 1. queue_pair_release: it is not requ
examples/fips_validation: remove illegal usage of API
Some of the cryptodev APIs are not allowed to be used by application directly. Hence removing the usage of 1. queue_pair_release: it is not required, as configure of queue pair release the previous queue pairs and the dev is not directly exposed to application, hence cannot use its ops from app. 2. rte_cryptodev_stop: it can be used directly without checking if the device is started or not. 3. rte_cryptodev_pmd_destroy: application should use rte_cryptodev_close instead.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Matan Azrad <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
show more ...
|
| #
e74abd48 |
| 10-Aug-2021 |
Akhil Goyal <[email protected]> |
cryptodev: rename function to check device validity
The API rte_cryptodev_pmd_is_valid_dev, can be used by the application as well as PMD to check whether the device is valid or not. Hence, _pmd is
cryptodev: rename function to check device validity
The API rte_cryptodev_pmd_is_valid_dev, can be used by the application as well as PMD to check whether the device is valid or not. Hence, _pmd is removed from the API. The applications and drivers which use this API are also updated.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
10aa3757 |
| 15-Apr-2021 |
Chengchang Tang <[email protected]> |
examples: add eal cleanup to examples
According to the programming guide, the rte_eal_init should be used pairs with rte_eal_cleanup.
This patch add rte_eal_cleanup to examples to encourage new use
examples: add eal cleanup to examples
According to the programming guide, the rte_eal_init should be used pairs with rte_eal_cleanup.
This patch add rte_eal_cleanup to examples to encourage new users of DPDK to use it.
Fixes: aec9c13c5257 ("eal: add function to release internal resources") Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application") Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver") Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines") Fixes: 08bd1a174461 ("examples/l3fwd-graph: add graph-based l3fwd skeleton") Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Fixes: b77f66002812 ("examples/pipeline: add new example application") Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA") Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: [email protected]
Signed-off-by: Chengchang Tang <[email protected]>
show more ...
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3 |
|
| #
fc6e6515 |
| 04-Feb-2021 |
Ibtisam Tariq <[email protected]> |
examples/fips_validation: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all
examples/fips_validation: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all those strcmp by directly binding each longopt with an int enum. This is to improve readability and consistency in all examples.
Bugzilla ID: 238
Reported-by: David Marchand <[email protected]> Signed-off-by: Ibtisam Tariq <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v21.02-rc2, v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2 |
|
| #
601b8a54 |
| 22-Oct-2020 |
Fan Zhang <[email protected]> |
fips_validation: fix GCM test
This patch fixes FIPS GCM test of the redundant plaintext string write and insufficient test case support check for some corner cases.
Fixes: d09abf2d1007 ("examples/f
fips_validation: fix GCM test
This patch fixes FIPS GCM test of the redundant plaintext string write and insufficient test case support check for some corner cases.
Fixes: d09abf2d1007 ("examples/fips_validation: update GCM test") Cc: [email protected]
Signed-off-by: Fan Zhang <[email protected]>
show more ...
|
| #
bda9ce3c |
| 30-Oct-2020 |
Ciara Power <[email protected]> |
examples/fips_validation: fix leak on failure
The wb_data variable went out of scope on failure in the get_writeback_data function. This is now freed before returning -1.
Coverity issue: 363453 Fix
examples/fips_validation: fix leak on failure
The wb_data variable went out of scope on failure in the get_writeback_data function. This is now freed before returning -1.
Coverity issue: 363453 Fixes: 952e10cdad5e ("examples/fips_validation: support scatter gather list")
Signed-off-by: Ciara Power <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
| #
afda6b01 |
| 30-Oct-2020 |
Ciara Power <[email protected]> |
examples/fips_validation: fix crash on allocation failure
The return value was not being checked when calling the get_writeback_data function in the AES test case. On failure, this led to a NULL der
examples/fips_validation: fix crash on allocation failure
The return value was not being checked when calling the get_writeback_data function in the AES test case. On failure, this led to a NULL dereference when using memcpy later. The return value is now checked to avoid this NULL dereference.
Coverity issue: 363463 Fixes: 952e10cdad5e ("examples/fips_validation: support scatter gather list")
Signed-off-by: Ciara Power <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v20.11-rc1 |
|
| #
d09abf2d |
| 09-Oct-2020 |
Fan Zhang <[email protected]> |
examples/fips_validation: update GCM test
This patch updates fips validation GCM test capabilities:
- In NIST GCMVS spec GMAC test vectors are the GCM ones with plaintext length as 0 and uses AAD a
examples/fips_validation: update GCM test
This patch updates fips validation GCM test capabilities:
- In NIST GCMVS spec GMAC test vectors are the GCM ones with plaintext length as 0 and uses AAD as input data. Originally fips_validation tests treats them both as GCM test vectors. This patch introduce automatic test type recognition between the two: when plaintext length is 0 the prepare_gmac_xform and prepare_auth_op functions are called, otherwise prepare_gcm_xform and prepare_aead_op functions are called.
- NIST GCMVS also specified externally or internally IV generation. When IV is to be generated by IUT internally IUT shall store the generated IV in the response file. This patch also adds the support to that.
Signed-off-by: Fan Zhang <[email protected]> Signed-off-by: Weqaar Janjua <[email protected]> Acked-by: John Griffin <[email protected]>
show more ...
|
| #
952e10cd |
| 09-Oct-2020 |
Fan Zhang <[email protected]> |
examples/fips_validation: support scatter gather list
This patch adds SGL support to FIPS sample application. Originally the application allocates single mbuf of 64KB - 1 bytes data room. With the c
examples/fips_validation: support scatter gather list
This patch adds SGL support to FIPS sample application. Originally the application allocates single mbuf of 64KB - 1 bytes data room. With the change the user may reduce the mbuf dataroom size by using the add cmdline option. If the input test data is longer than the user provided data room size the application will automatically build chained mbufs for the target cryptodev PMD to test.
Signed-off-by: Fan Zhang <[email protected]> Acked-by: John Griffin <[email protected]>
show more ...
|
| #
79365018 |
| 09-Sep-2020 |
Archana Muniganti <[email protected]> |
examples/fips_validation: fix version compatibility
Separate out CAVS request file version 21.4 code to support lower versions.
Fixes: 32440cdf2af9 ("examples/fips_validation: fix parsing of TDES v
examples/fips_validation: fix version compatibility
Separate out CAVS request file version 21.4 code to support lower versions.
Fixes: 32440cdf2af9 ("examples/fips_validation: fix parsing of TDES vectors") Fixes: 2b84d2bd47df ("examples/fips_validation: fix count overwrite for TDES") Cc: [email protected]
Signed-off-by: Archana Muniganti <[email protected]> Acked-by: Fan Zhang <[email protected]> Tested-by: Yu Jiang <[email protected]>
show more ...
|
| #
8a40ff39 |
| 16-Sep-2020 |
Archana Muniganti <[email protected]> |
examples/fips_validation: bypass unsupported vectors
Bypass the test vectors of unsupported crypto transform for SHA.
Signed-off-by: Archana Muniganti <[email protected]>
|
| #
1442ab1a |
| 06-Oct-2020 |
Olivier Matz <[email protected]> |
examples/fips_validation: support self-test only
Make it possible to pass the self-tests when no req path is set.
Signed-off-by: Olivier Matz <[email protected]> Acked-by: Fan Zhang <roy.fan.z
examples/fips_validation: support self-test only
Make it possible to pass the self-tests when no req path is set.
Signed-off-by: Olivier Matz <[email protected]> Acked-by: Fan Zhang <[email protected]>
show more ...
|
| #
ce627d63 |
| 14-Sep-2020 |
Thomas Monjalon <[email protected]> |
mbuf: remove deprecated function and macro aliases
Remove the deprecated functions - rte_mbuf_data_dma_addr - rte_mbuf_data_dma_addr_default which aliased the more recent functions - rte_mbuf_dat
mbuf: remove deprecated function and macro aliases
Remove the deprecated functions - rte_mbuf_data_dma_addr - rte_mbuf_data_dma_addr_default which aliased the more recent functions - rte_mbuf_data_iova - rte_mbuf_data_iova_default
Remove the deprecated macros - rte_pktmbuf_mtophys - rte_pktmbuf_mtophys_offset which aliased the more recent macros - rte_pktmbuf_iova - rte_pktmbuf_iova_offset
Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Ray Kinsella <[email protected]>
show more ...
|
|
Revision tags: v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1 |
|
| #
2b84d2bd |
| 11-Jun-2020 |
Archana Muniganti <[email protected]> |
examples/fips_validation: fix count overwrite for TDES
Application updates first line of each test vector with COUNT = i(where i = 1,2,3..) assuming first line contains COUNT string. But few of the
examples/fips_validation: fix count overwrite for TDES
Application updates first line of each test vector with COUNT = i(where i = 1,2,3..) assuming first line contains COUNT string. But few of the TDES input test vectors don't contain COUNT string and thus COUNT is getting overwritten on other data.
Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing") Cc: [email protected]
Signed-off-by: Archana Muniganti <[email protected]> Signed-off-by: Kanaka Durga Kotamarthy <[email protected]>
show more ...
|
|
Revision tags: v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1, v20.02, v20.02-rc4, v20.02-rc3, v20.02-rc2, v20.02-rc1 |
|
| #
d5a9ea55 |
| 07-Jan-2020 |
Sucharitha Sarananaga <[email protected]> |
examples/fips_validation: support AES XTS
AES XTS support is added to fips application. Parse test-vectors from input files, populate AES XTS tests and prepare AES XTS operations for fips validation
examples/fips_validation: support AES XTS
AES XTS support is added to fips application. Parse test-vectors from input files, populate AES XTS tests and prepare AES XTS operations for fips validation.
Signed-off-by: Abed Kamaluddin <[email protected]> Signed-off-by: Archana Muniganti <[email protected]> Signed-off-by: Sucharitha Sarananaga <[email protected]>
show more ...
|
|
Revision tags: v19.11, v19.11-rc4, v19.11-rc3, v19.11-rc2 |
|
| #
82cfb9c2 |
| 06-Nov-2019 |
Fan Zhang <[email protected]> |
examples/fips_validation: fix auth verify
Fixes: f64adb6714e0 ("examples/fips_validation: support HMAC parsing") Cc: [email protected]
This patch fixes the incorrect mbuf write and digest memory leak
examples/fips_validation: fix auth verify
Fixes: f64adb6714e0 ("examples/fips_validation: support HMAC parsing") Cc: [email protected]
This patch fixes the incorrect mbuf write and digest memory leak in fips_validation authentication verify.
Signed-off-by: Fan Zhang <[email protected]> Acked-by: Marko Kovacevic <[email protected]>
show more ...
|
|
Revision tags: v19.11-rc1 |
|
| #
ae65004f |
| 01-Oct-2019 |
Michael Shamis <[email protected]> |
examples/fips_validation: separate ECB and CBC init
Separate initialization of IV, PT and CT according to TDES ECB and CBC crypto modes
Signed-off-by: Michael Shamis <[email protected]> Reviewe
examples/fips_validation: separate ECB and CBC init
Separate initialization of IV, PT and CT according to TDES ECB and CBC crypto modes
Signed-off-by: Michael Shamis <[email protected]> Reviewed-by: Marko Kovacevic <[email protected]>
show more ...
|
| #
d3190431 |
| 01-Oct-2019 |
Michael Shamis <[email protected]> |
examples/fips_validation: support AES ECB
Signed-off-by: Michael Shamis <[email protected]> Reviewed-by: Marko Kovacevic <[email protected]>
|
| #
efe3a8db |
| 01-Oct-2019 |
Michael Shamis <[email protected]> |
examples/fips_validation: support TDES ECB
Signed-off-by: Michael Shamis <[email protected]> Reviewed-by: Marko Kovacevic <[email protected]>
|
|
Revision tags: v19.08, v19.08-rc4, v19.08-rc3, v19.08-rc2, v19.08-rc1 |
|
| #
c9030ae3 |
| 25-Jun-2019 |
Anoob Joseph <[email protected]> |
cryptodev: add feature flags to disable
Adding a new field, ff_disable, to allow applications to control the features enabled on the crypto device. This would allow for efficient usage of HW/SW offl
cryptodev: add feature flags to disable
Adding a new field, ff_disable, to allow applications to control the features enabled on the crypto device. This would allow for efficient usage of HW/SW offloads.
Signed-off-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2 |
|
| #
083a2777 |
| 15-Apr-2019 |
Marko Kovacevic <[email protected]> |
examples/fips_validation: fix CMAC test
As a result of the cmac test running the test where PT len is 65536 it should give a result back to the user USER1: Error -1: Prepare op USER1: PT len 65536 a
examples/fips_validation: fix CMAC test
As a result of the cmac test running the test where PT len is 65536 it should give a result back to the user USER1: Error -1: Prepare op USER1: PT len 65536 as this MSG len is not supported. Issue was that the application was not freeing the op properly after a while causing the app to fail.
CRYPTODEV: rte_cryptodev_sym_session_create() line 1340: couldn't get object from session mempool USER1: Error -12: test block USER1: Error -12: Failed test CMAC/req/CMAC.req
Fixes: cd255ccf5764 ("examples/fips_validation: support AES parsing") Cc: [email protected]
Signed-off-by: Marko Kovacevic <[email protected]>
show more ...
|