#
e0a8442c |
| 16-Aug-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
test: tag tests type
Rather than having the test types called out in the meson.build file, we can use macros to identify the test type in the C file itself and then dynamically build up the tests li
test: tag tests type
Rather than having the test types called out in the meson.build file, we can use macros to identify the test type in the C file itself and then dynamically build up the tests lists at config time.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
#
967d8bf5 |
| 08-Jun-2023 |
Akhil Goyal <gakhil@marvell.com> |
test/security: remove no MACsec support case
Removed the test_capability_get_no_support_for_macsec case as MACsec is now supported and capability can have valid MACsec support.
Signed-off-by: Akhil
test/security: remove no MACsec support case
Removed the test_capability_get_no_support_for_macsec case as MACsec is now supported and capability can have valid MACsec support.
Signed-off-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
#
2973dbf9 |
| 04-Oct-2022 |
Akhil Goyal <gakhil@marvell.com> |
security: hide session structure
Structure rte_security_session is moved to internal headers which are not visible to applications. The only field which should be used by app is opaque_data. This fi
security: hide session structure
Structure rte_security_session is moved to internal headers which are not visible to applications. The only field which should be used by app is opaque_data. This field can now be accessed via set/get APIs added in this patch. Subsequent changes in app and lib are made to compile the code.
Signed-off-by: Akhil Goyal <gakhil@marvell.com> Tested-by: Gagandeep Singh <g.singh@nxp.com> Tested-by: David Coyle <david.coyle@intel.com> Tested-by: Kevin O'Sullivan <kevin.osullivan@intel.com>
show more ...
|
#
3f3fc330 |
| 04-Oct-2022 |
Akhil Goyal <gakhil@marvell.com> |
security: remove private mempool usage
As per current design, rte_security_session_create() unnecessarily use 2 mempool objects for a single session.
To address this, the API will now take only 1 m
security: remove private mempool usage
As per current design, rte_security_session_create() unnecessarily use 2 mempool objects for a single session.
To address this, the API will now take only 1 mempool object instead of 2. With this change, the library layer will get the object from mempool and session priv data is stored contiguously in the same mempool object.
User need to ensure that the mempool created in application is big enough for session private data as well. This can be ensured if the pool is created after getting size of session priv data using API rte_security_session_get_size().
Since set and get pkt metadata for security sessions are now made inline for Inline crypto/proto mode, a new member fast_mdata is added to the rte_security_session. To access opaque data and fast_mdata will be accessed via inline APIs which can do pointer manipulations inside library from session_private_data pointer coming from application.
Signed-off-by: Akhil Goyal <gakhil@marvell.com> Tested-by: Gagandeep Singh <g.singh@nxp.com> Tested-by: David Coyle <david.coyle@intel.com> Tested-by: Kevin O'Sullivan <kevin.osullivan@intel.com>
show more ...
|
#
68d25915 |
| 12-Aug-2022 |
Srujana Challa <schalla@marvell.com> |
security: remove user data get API
The API rte_security_get_userdata() was being unused by most of the drivers and it was retrieving userdata from mbuf dynamic field. Hence, the API was removed and
security: remove user data get API
The API rte_security_get_userdata() was being unused by most of the drivers and it was retrieving userdata from mbuf dynamic field. Hence, the API was removed and the application can directly get the userdata from dynamic field. This helps in removing extra checks in datapath.
Signed-off-by: Srujana Challa <schalla@marvell.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
#
7be78d02 |
| 29-Nov-2021 |
Josh Soref <jsoref@gmail.com> |
fix spelling in comments and strings
The tool comes from https://github.com/jsoref
Signed-off-by: Josh Soref <jsoref@gmail.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
|
#
e30b2833 |
| 18-Oct-2020 |
Akhil Goyal <akhil.goyal@nxp.com> |
security: update session create API
The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the nu
security: update session create API
The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to session. Hence the API is modified to take two mempool pointers - one for session and one for private data. This is very similar to crypto based session create APIs.
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com> Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
show more ...
|
#
c6478fd5 |
| 03-Jul-2020 |
David Coyle <david.coyle@intel.com> |
test/security: add DOCSIS capability checks
Add unit tests for DOCSIS capabilitity checks.
Signed-off-by: David Coyle <david.coyle@intel.com> Signed-off-by: Mairtin o Loingsigh <mairtin.oloingsigh@
test/security: add DOCSIS capability checks
Add unit tests for DOCSIS capabilitity checks.
Signed-off-by: David Coyle <david.coyle@intel.com> Signed-off-by: Mairtin o Loingsigh <mairtin.oloingsigh@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
34e0ec71 |
| 23-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: enable tests for non-implemented ops
After re-enabling checks for non-implemented ops in non-debug mode in librte_security set_pkt_metadata and get_userdata functions, tests verifying
test/security: enable tests for non-implemented ops
After re-enabling checks for non-implemented ops in non-debug mode in librte_security set_pkt_metadata and get_userdata functions, tests verifying proper work of tests can be enabled also.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
cca3eda1 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check capability get
Add unit tests for rte_security_capability_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goya
test/security: check capability get
Add unit tests for rte_security_capability_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
2242e701 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check capabilities get
Add unit tests for rte_security_capabilities_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.
test/security: check capabilities get
Add unit tests for rte_security_capabilities_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
0cbd6711 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check userdata get
Add unit tests for rte_security_get_userdata function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nx
test/security: check userdata get
Add unit tests for rte_security_get_userdata function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
a9ff3522 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check metadata set
Add unit tests for rte_security_set_pkt_metadata function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goya
test/security: check metadata set
Add unit tests for rte_security_set_pkt_metadata function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
04631daf |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check session destroy
Add unit tests for rte_security_session_destroy function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.go
test/security: check session destroy
Add unit tests for rte_security_session_destroy function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
1e1a0e49 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check session stats
Add unit tests for rte_security_session_stats_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.go
test/security: check session stats
Add unit tests for rte_security_session_stats_get function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
226430f4 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check session size
Add unit tests for rte_security_session_get_size function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goya
test/security: check session size
Add unit tests for rte_security_session_get_size function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
0b124e04 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: check session update
Add unit tests for rte_security_session_update function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goya
test/security: check session update
Add unit tests for rte_security_session_update function.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
4849e8e4 |
| 09-Apr-2020 |
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> |
test/security: introduce security lib tests
This patch introduces set of unit tests of librte_security API functions. Tests are added to dpdk-test application and can be run with "security_autotest"
test/security: introduce security lib tests
This patch introduces set of unit tests of librte_security API functions. Tests are added to dpdk-test application and can be run with "security_autotest" runtime command.
This is the first patch in the series of patches as adding all test cases for all API functions in a single patch would make it unreadable.
This patch defines structure of the file and necessary test framework initialization. It also contains first subset of unit tests for rte_security_session_create API function.
Structure of the tests file is following: - macros for making tests more readable; - mockup structures and functions for rte_security_ops; - test suite and test cases setup and teardown functions; - tests functions; - declaration of testcases.
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|