#
917ac9c4 |
| 21-Jun-2017 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
cryptodev: store device pointer in virtual devices
Only non virtual devices were storing the pointer to rte_device structure in rte_cryptodev, which will be needed to retrieve the driver name for an
cryptodev: store device pointer in virtual devices
Only non virtual devices were storing the pointer to rte_device structure in rte_cryptodev, which will be needed to retrieve the driver name for any device.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
efe1d3b4 |
| 21-Jun-2017 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
crypto/scheduler: remove socket id check
Socket id parsed from the user was checked if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have mem
crypto/scheduler: remove socket id check
Socket id parsed from the user was checked if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have memory anyway, so it will fail at memory allocation.
Therefore, the best solution is to remove this check.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
c570f262 |
| 19-Apr-2017 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
crypto/scheduler: fix uninitialized capabilities
Capability information is updated as slaves are attached, but if this information is requested via rte_cryptodev_info_get() when no slaves have been
crypto/scheduler: fix uninitialized capabilities
Capability information is updated as slaves are attached, but if this information is requested via rte_cryptodev_info_get() when no slaves have been attached, the structure would not be initialized, leading to a potential segmentation fault.
Therefore, the structure should be initialized with no capabilities at device creation.
Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations") Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
168b9e76 |
| 18-Apr-2017 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
drivers/crypto: do not create unique name internally
Crypto devices of the same type could be initialized with the same name, since internally this name was suffixed with an index.
Since commit <dd
drivers/crypto: do not create unique name internally
Crypto devices of the same type could be initialized with the same name, since internally this name was suffixed with an index.
Since commit <dda987315ca2> ("vdev: make virtual bus use its device struct"), this is not allowed anymore.
Therefore, there is no need to create an unique name at device initialization.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
7e214771 |
| 18-Apr-2017 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
drivers/crypto: check if name is null
Check if virtual device name is NULL, to avoid possible segmentation faults.
Fixes: 5d2aa461cbca ("vdev: use generic vdev struct for probe and remove")
Signed
drivers/crypto: check if name is null
Check if virtual device name is NULL, to avoid possible segmentation faults.
Fixes: 5d2aa461cbca ("vdev: use generic vdev struct for probe and remove")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
50e14527 |
| 18-Apr-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: improve parameters parsing
This patch improves the cryptodev scheduler PMD's commandline parsing capability. Originally, the scheduler's slave option requires the slave vdev(s) bei
crypto/scheduler: improve parameters parsing
This patch improves the cryptodev scheduler PMD's commandline parsing capability. Originally, the scheduler's slave option requires the slave vdev(s) being declared prior to it. This patch removes this limitation by storing the slave names temporarily and attaching them later.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
5d2aa461 |
| 11-Apr-2017 |
Jan Blunck <jblunck@infradead.org> |
vdev: use generic vdev struct for probe and remove
This is a preparation to embed the generic rte_device into the rte_eth_dev also for virtual devices.
Signed-off-by: Jan Blunck <jblunck@infradead.
vdev: use generic vdev struct for probe and remove
This is a preparation to embed the generic rte_device into the rte_eth_dev also for virtual devices.
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
show more ...
|
#
3fb45fdb |
| 05-Apr-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: deprecate get/set mode functions
This patch deprecates the following functions in 17.05, which will be removed in 17.08. - rte_crpytodev_scheduler_mode_get() - rte_crpytodev_schedu
crypto/scheduler: deprecate get/set mode functions
This patch deprecates the following functions in 17.05, which will be removed in 17.08. - rte_crpytodev_scheduler_mode_get() - rte_crpytodev_scheduler_mode_set()
These two new functions replace them, fixing the typo in their names. - rte_cryptodev_scheduler_mode_get() - rte_cryptodev_scheduler_mode_set()
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
a0e805ee |
| 03-Apr-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: add more options
This patch adds initial mode and ordering enable/disable EAL options to cryptodev scheduler PMD.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Decl
crypto/scheduler: add more options
This patch adds initial mode and ordering enable/disable EAL options to cryptodev scheduler PMD.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
029bb907 |
| 30-Mar-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: add API to get attached slaves
This patch adds an API to get the run-time slaves number and list of a cryptodev scheduler PMD.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> A
crypto/scheduler: add API to get attached slaves
This patch adds an API to get the run-time slaves number and list of a cryptodev scheduler PMD.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
211e27a9 |
| 02-Mar-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: change enqueue and dequeue functions
This patch changes the enqueue and dequeue methods to cryptodev scheduler PMD. Originally a 2-layer function call is carried out upon enqueuing
crypto/scheduler: change enqueue and dequeue functions
This patch changes the enqueue and dequeue methods to cryptodev scheduler PMD. Originally a 2-layer function call is carried out upon enqueuing or dequeuing a burst of crypto ops. This patch removes one layer to improve the performance.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
b88161be |
| 28-Mar-2017 |
Bruce Richardson <bruce.richardson@intel.com> |
crypto/scheduler: fix include of local headers
When a C file for a library/driver is including the public header files for that library, those need to be included as local includes using quotes rath
crypto/scheduler: fix include of local headers
When a C file for a library/driver is including the public header files for that library, those need to be included as local includes using quotes rather than angle-brackets. Without doing so, parallel builds can fail, as the compiler will only look for those headers in the global include folder rather than locally, and the build system does not enforce that the headers for a lib are installed before the rest of the lib is compiled.
Fixes: 097ab0bac017 ("crypto/scheduler: add API") Fixes: 503e9c5afb38 ("crypto/scheduler: register as vdev driver") Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations") Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
503e9c5a |
| 24-Jan-2017 |
Fan Zhang <roy.fan.zhang@intel.com> |
crypto/scheduler: register as vdev driver
Adds crypto scheduler's PMD's probe and remove function and the device's enqueue and dequeue burst functions. A cryptodev scheduler PMD is then registered i
crypto/scheduler: register as vdev driver
Adds crypto scheduler's PMD's probe and remove function and the device's enqueue and dequeue burst functions. A cryptodev scheduler PMD is then registered in the end.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|