crypto/scheduler: use proper API for device start/stop
authorAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 11:27:50 +0000 (16:57 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 13:33:16 +0000 (15:33 +0200)
commitbeb4c305b3793fc80d9a1880eb352ade39c2a4b9
treee7a6ee224e79b7e6076fc837bacf578676eebd98
parent2fd66f758fc289d507391eb07f1979461ac70bfe
crypto/scheduler: use proper API for device start/stop

The worker PMDs were using direct device start/stop
functions rather than rte_cryptodev_start(),
so rte_crypto_fp_ops never get set. This patch calls
the rte_cryptodev_start and stop APIs which start and
stop devices properly and fp_ops get set.

Reported-by: Ciara Power <ciara.power@intel.com>
Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/crypto/scheduler/scheduler_pmd_ops.c