|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
d54c72ec |
| 20-Oct-2021 |
Akhil Goyal <[email protected]> |
drivers/crypto: invoke probing finish function
Invoke event_dev_probing_finish() function at the end of probing, this function sets the function pointers in the fp_ops flat array in case of secondar
drivers/crypto: invoke probing finish function
Invoke event_dev_probing_finish() function at the end of probing, this function sets the function pointers in the fp_ops flat array in case of secondary process. For primary process, fp_ops is updated in rte_cryptodev_start().
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Matan Azrad <[email protected]>
show more ...
|
| #
af668035 |
| 10-Aug-2021 |
Akhil Goyal <[email protected]> |
cryptodev: expose driver interface as internal
The rte_cryptodev_pmd.* files are for drivers only and should be private to DPDK, and not installed for app use.
Signed-off-by: Akhil Goyal <gakhil@ma
cryptodev: expose driver interface as internal
The rte_cryptodev_pmd.* files are for drivers only and should be private to DPDK, and not installed for app use.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Matan Azrad <[email protected]> Acked-by: Fan Zhang <[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 |
|
| #
eeded204 |
| 26-Apr-2021 |
David Marchand <[email protected]> |
log: register with standardized names
Let's try to enforce the convention where most drivers use a pmd. logtype with their class reflected in it, and libraries use a lib. logtype.
Introduce two new
log: register with standardized names
Let's try to enforce the convention where most drivers use a pmd. logtype with their class reflected in it, and libraries use a lib. logtype.
Introduce two new macros: - RTE_LOG_REGISTER_DEFAULT can be used when a single logtype is used in a component. It is associated to the default name provided by the build system, - RTE_LOG_REGISTER_SUFFIX can be used when multiple logtypes are used, and then the passed name is appended to the default name,
RTE_LOG_REGISTER is left untouched for existing external users and for components that do not comply with the convention.
There is a new Meson variable log_prefix to adapt the default name for baseband (pmd.bb.), bus (no pmd.) and mempool (no pmd.) classes.
Note: achieved with below commands + reverted change on net/bonding + edits on crypto/virtio, compress/mlx5, regex/mlx5
$ git grep -l RTE_LOG_REGISTER drivers/ | while read file; do pattern=${file##drivers/}; class=${pattern%%/*}; pattern=${pattern#$class/}; drv=${pattern%%/*}; case "$class" in baseband) pattern=pmd.bb.$drv;; bus) pattern=bus.$drv;; mempool) pattern=mempool.$drv;; *) pattern=pmd.$class.$drv;; esac sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern',/RTE_LOG_REGISTER_DEFAULT(\1,/' $file; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern'\.\(.*\),/RTE_LOG_REGISTER_SUFFIX(\1, \2,/' $file; done
$ git grep -l RTE_LOG_REGISTER lib/ | while read file; do pattern=${file##lib/}; pattern=lib.${pattern%%/*}; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern',/RTE_LOG_REGISTER_DEFAULT(\1,/' $file; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern'\.\(.*\),/RTE_LOG_REGISTER_SUFFIX(\1, \2,/' $file; done
Signed-off-by: David Marchand <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
|
Revision tags: v21.05-rc1, v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2, v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2, v20.11-rc1, v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1 |
|
| #
9c99878a |
| 01-Jul-2020 |
Jerin Jacob <[email protected]> |
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, regist
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, registering it and setting its level in the constructor context.
Signed-off-by: Jerin Jacob <[email protected]> Acked-by: Adam Dybkowski <[email protected]> Acked-by: Sachin Saxena <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1 |
|
| #
b3aaf24d |
| 16-Apr-2020 |
Pablo de Lara <[email protected]> |
cryptodev: add session-less feature flag
Add feature flag for symmetric sessionless support, so it can be checked by applications.
Signed-off-by: Pablo de Lara <[email protected]> Acke
cryptodev: add session-less feature flag
Add feature flag for symmetric sessionless support, so it can be checked by applications.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Adam Dybkowski <[email protected]> Tested-by: Ruifeng Wang <[email protected]> Acked-by: Fiona Trahe <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v20.02, v20.02-rc4, v20.02-rc3, v20.02-rc2, v20.02-rc1, v19.11, v19.11-rc4, v19.11-rc3, v19.11-rc2, v19.11-rc1 |
|
| #
2ce24ee7 |
| 05-Sep-2019 |
Ferruh Yigit <[email protected]> |
crypto/null: fix global variable multiple definitions
'null_logtype_driver' global variable is defined in a header file which was causing multiple definitions of the variable, fixed it by moving it
crypto/null: fix global variable multiple definitions
'null_logtype_driver' global variable is defined in a header file which was causing multiple definitions of the variable, fixed it by moving it to the .c file.
Issue has been detected by '-fno-common' gcc flag.
Fixes: 735b783d8c2b ("crypto/null: add dynamic logging") Cc: [email protected]
Signed-off-by: Ferruh Yigit <[email protected]>
show more ...
|
|
Revision tags: v19.08, v19.08-rc4, v19.08-rc3, v19.08-rc2, v19.08-rc1, v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2, v19.05-rc1, v19.02, v19.02-rc4, v19.02-rc3, v19.02-rc2 |
|
| #
725d2a7f |
| 10-Jan-2019 |
Fan Zhang <[email protected]> |
cryptodev: change queue pair configure structure
This patch changes the cryptodev queue pair configure structure to enable two mempool passed into cryptodev PMD simutaneously.
Signed-off-by: Fan Zh
cryptodev: change queue pair configure structure
This patch changes the cryptodev queue pair configure structure to enable two mempool passed into cryptodev PMD simutaneously.
Signed-off-by: Fan Zhang <[email protected]> Acked-by: Fiona Trahe <[email protected]> Acked-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v19.02-rc1, v18.11, v18.11-rc5, v18.11-rc4, v18.11-rc3, v18.11-rc2, v18.11-rc1, v18.08, v18.08-rc3, v18.08-rc2, v18.08-rc1 |
|
| #
f8e99896 |
| 18-Jun-2018 |
Thomas Monjalon <[email protected]> |
remove useless constructor headers
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the fu
remove useless constructor headers
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the function definition.
Signed-off-by: Thomas Monjalon <[email protected]>
show more ...
|
| #
012c5076 |
| 05-Jul-2018 |
Pablo de Lara <[email protected]> |
cryptodev: rename PMD symmetric session API
The PMD specific API to configure, clear and obtain session private size is renamed, including the word _sym_ to clarify that it is API for symmetric sess
cryptodev: rename PMD symmetric session API
The PMD specific API to configure, clear and obtain session private size is renamed, including the word _sym_ to clarify that it is API for symmetric sessions, so there will not be any conflicts for asymmetric and other type of sessions in the future.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
2717246e |
| 05-Jul-2018 |
Pablo de Lara <[email protected]> |
cryptodev: replace mbuf scatter gather flag
The current mbuf scatter gatter feature flag is too ambiguous, as it is not clear if input and/or output buffers can be scatter gather mbufs or not, plus
cryptodev: replace mbuf scatter gather flag
The current mbuf scatter gatter feature flag is too ambiguous, as it is not clear if input and/or output buffers can be scatter gather mbufs or not, plus if in-place and/or out-of-place is supported.
Therefore, five new flags will replace this flag: - RTE_CRYPTODEV_FF_IN_PLACE_SGL - RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT - RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT - RTE_CRYPTODEV_FF_OOP_LB_IN_SGL_OUT - RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
e1fc5b76 |
| 05-Jul-2018 |
Pablo de Lara <[email protected]> |
cryptodev: remove max number of sessions parameter
Most crypto PMDs do not have a limitation of the number of the sessions that can be handled internally. The value that was set before was not actua
cryptodev: remove max number of sessions parameter
Most crypto PMDs do not have a limitation of the number of the sessions that can be handled internally. The value that was set before was not actually used at all, since the sessions are created at the application level. Therefore, this value is not parsed from the initial crypto parameters anymore and it is set to 0, meaning that there is no actual limit.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
735b783d |
| 29-Jun-2018 |
Pallantla Poornima <[email protected]> |
crypto/null: add dynamic logging
Registered new dynamic logtype for driver and replaced NULL_CRYPTO_LOG_ERR and CDEV_LOG_ERR with the new NULL_LOG macro, which uses the new logtype.
Signed-off-by:
crypto/null: add dynamic logging
Registered new dynamic logtype for driver and replaced NULL_CRYPTO_LOG_ERR and CDEV_LOG_ERR with the new NULL_LOG macro, which uses the new logtype.
Signed-off-by: Pallantla Poornima <[email protected]> Reviewed-by: Reshma Pattan <[email protected]> Reviewed-by: Pablo de Lara <[email protected]>
show more ...
|
|
Revision tags: v18.05, v18.05-rc6, v18.05-rc5, v18.05-rc4, v18.05-rc3, v18.05-rc2, v18.05-rc1 |
|
| #
f737f5ce |
| 09-Mar-2018 |
Fiona Trahe <[email protected]> |
cryptodev: change argument of driver registration
Pass an rte_driver to the RTE_PMD_REGISTER_CRYPTO_DRIVER macro rather than an unspecified container which holds an rte_driver. All the macro actuall
cryptodev: change argument of driver registration
Pass an rte_driver to the RTE_PMD_REGISTER_CRYPTO_DRIVER macro rather than an unspecified container which holds an rte_driver. All the macro actually needs is the rte_driver, not the container holding it. This paves the way for a later patch in which a driver will be registered which does not naturally derive from a container and so avoids having to create an arbitrary container to pass in the rte_driver.
This patch changes the cryptodev lib macro and all the PMDs which use it.
Signed-off-by: Fiona Trahe <[email protected]> Reviewed-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v18.02, v18.02-rc4, v18.02-rc3, v18.02-rc2, v18.02-rc1 |
|
| #
5566a3e3 |
| 19-Dec-2017 |
Bruce Richardson <[email protected]> |
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@in
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|
|
Revision tags: v17.11, v17.11-rc4, v17.11-rc3 |
|
| #
d4a586d2 |
| 07-Nov-2017 |
Jianfeng Tan <[email protected]> |
bus/vdev: move code from EAL into a new driver
Move the vdev bus from lib/librte_eal to drivers/bus.
As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those help
bus/vdev: move code from EAL into a new driver
Move the vdev bus from lib/librte_eal to drivers/bus.
As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too.
Signed-off-by: Jianfeng Tan <[email protected]>
show more ...
|
| #
f1a7a5c5 |
| 02-Nov-2017 |
Thomas Monjalon <[email protected]> |
remove include of generated config header
The file rte_config.h is generated and automatically included with -include option. The explicit includes in drivers and libraries are useless.
Signed-off-
remove include of generated config header
The file rte_config.h is generated and automatically included with -include option. The explicit includes in drivers and libraries are useless.
Signed-off-by: Thomas Monjalon <[email protected]>
show more ...
|
|
Revision tags: v17.11-rc2 |
|
| #
f2f020d2 |
| 25-Oct-2017 |
Declan Doherty <[email protected]> |
cryptodev: break dependency on virtual device bus
Removes any dependency of librte_cryptodev on the virtual device infrastructure code and removes the functions which were virtual device specific.
cryptodev: break dependency on virtual device bus
Removes any dependency of librte_cryptodev on the virtual device infrastructure code and removes the functions which were virtual device specific.
Updates all virtual PMDs to remove dependencies on rte_cryptodev_vdev.h and replaces those calls with the new bus independent functions.
Due to these changes, the cryptodev ABI version gets bumped.
Signed-off-by: Declan Doherty <[email protected]> Acked-by: Pablo de Lara <[email protected]> Tested-by: Tomasz Duszynski <[email protected]>
show more ...
|
|
Revision tags: v17.11-rc1 |
|
| #
effd3b9f |
| 16-Aug-2017 |
Pablo de Lara <[email protected]> |
cryptodev: allocate driver structure statically
When register a crypto driver, a cryptodev driver structure was being allocated, using malloc. Since this call may fail, it is safer to allocate this
cryptodev: allocate driver structure statically
When register a crypto driver, a cryptodev driver structure was being allocated, using malloc. Since this call may fail, it is safer to allocate this memory statically in each PMD, so driver registration will never fail.
Coverity issue: 158645 Fixes: 7a364faef185 ("cryptodev: remove crypto device type enumeration")
Signed-off-by: Pablo de Lara <[email protected]> Reviewed-by: Kirill Rybalchenko <[email protected]>
show more ...
|
|
Revision tags: v17.08, v17.08-rc4, v17.08-rc3 |
|
| #
27391b53 |
| 25-Jul-2017 |
Pablo de Lara <[email protected]> |
cryptodev: fix session init return value
When calling rte_cryptodev_sym_session_init(), if there was an error, it returned -1, instead of returning the specific error code, which can be valuable for
cryptodev: fix session init return value
When calling rte_cryptodev_sym_session_init(), if there was an error, it returned -1, instead of returning the specific error code, which can be valuable for the application for error handling.
Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]> Acked-by: Fiona Trahe <[email protected]>
show more ...
|
|
Revision tags: v17.08-rc2, v17.08-rc1 |
|
| #
b3bbd9e5 |
| 05-Jul-2017 |
Slawomir Mrozowicz <[email protected]> |
cryptodev: support device independent sessions
Change crypto device's session management to make it device independent and simplify architecture when session is intended to be used on more than one
cryptodev: support device independent sessions
Change crypto device's session management to make it device independent and simplify architecture when session is intended to be used on more than one device.
Sessions private data is agnostic to underlying device by adding an indirection in the sessions private data using the crypto driver identifier. A single session can contain indirections to multiple device types.
New function rte_cryptodev_sym_session_init has been created, to initialize the driver private session data per driver to be used on a same session, and rte_cryptodev_sym_session_clear to clear this data before calling rte_cryptodev_sym_session_free.
Signed-off-by: Slawomir Mrozowicz <[email protected]> Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
70c5c3d1 |
| 05-Jul-2017 |
Slawomir Mrozowicz <[email protected]> |
cryptodev: remove driver id from session
Since crypto session will not be attached to a specific device or driver, the field driver_id is not required anymore (only used to check that a session was
cryptodev: remove driver id from session
Since crypto session will not be attached to a specific device or driver, the field driver_id is not required anymore (only used to check that a session was being handled by the right device).
Signed-off-by: Slawomir Mrozowicz <[email protected]> Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
c3e3f5cf |
| 05-Jul-2017 |
Pablo de Lara <[email protected]> |
cryptodev: remove unused cryptodev session structure
Cryptodev session structure was a duplication of the cryptodev symmetric structure. It was used by some PMDs that should use the symmetric struct
cryptodev: remove unused cryptodev session structure
Cryptodev session structure was a duplication of the cryptodev symmetric structure. It was used by some PMDs that should use the symmetric structure instead.
Since this structure was internal, there is no deprecation notice required.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| #
7a364fae |
| 30-Jun-2017 |
Slawomir Mrozowicz <[email protected]> |
cryptodev: remove crypto device type enumeration
Changes device type identification to be based on a unique driver id replacing the current device type enumeration, which needed library changes ever
cryptodev: remove crypto device type enumeration
Changes device type identification to be based on a unique driver id replacing the current device type enumeration, which needed library changes every time a new crypto driver was added.
The driver id is assigned dynamically during driver registration using the new macro RTE_PMD_REGISTER_CRYPTO_DRIVER which returns a unique uint8_t identifier for that driver. New APIs are also introduced to allow retrieval of the driver id using the driver name.
Signed-off-by: Slawomir Mrozowicz <[email protected]> Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]>
show more ...
|
| #
5209df0d |
| 02-Jul-2017 |
Pablo de Lara <[email protected]> |
cryptodev: move session type to generic crypto op
Session type (operation with or without session) is not something specific to symmetric operations. Therefore, the variable is moved to the generic
cryptodev: move session type to generic crypto op
Session type (operation with or without session) is not something specific to symmetric operations. Therefore, the variable is moved to the generic crypto operation structure.
Since this is an ABI change, the cryptodev library version gets bumped.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]> Acked-by: Akhil Goyal <[email protected]> Acked-by: Fiona Trahe <[email protected]>
show more ...
|
| #
63348b9d |
| 27-Jun-2017 |
Pablo de Lara <[email protected]> |
cryptodev: move vdev functions to a separate file
Move all functions handling virtual devices to a separate header file "rte_cryptodev_vdev.h", in order to leave only generic functions for any devic
cryptodev: move vdev functions to a separate file
Move all functions handling virtual devices to a separate header file "rte_cryptodev_vdev.h", in order to leave only generic functions for any device in the rest of the files.
It also creates the file "rte_cryptodev_pmd.c", with the implementations of these functions.
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Declan Doherty <[email protected]>
show more ...
|