crypto/scheduler: fix multicore rings re-use
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Wed, 16 May 2018 14:24:31 +0000 (15:24 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 22 May 2018 14:36:11 +0000 (16:36 +0200)
commitcc32201a8d834a690d76cd281acf553182894d9f
treecc89e1cbacb6fb79c9bc83f7ccd443dd36d699e2
parentb1bc4217fd880cd89a6dae78b8aeb90d130854d9
crypto/scheduler: fix multicore rings re-use

When scheduler mode changed from multicore to roundrobin and
back to multicore, scheduler tries to create memory rings with
the same name and fails. The fix allows to lookup and re-use
previously allocated memory rings.

Fixes: 4c07e0552f0a ("crypto/scheduler: add multicore scheduling mode")
Cc: stable@dpdk.org
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Tested-by: Reshma Pattan <reshma.pattan@intel.com>
drivers/crypto/scheduler/scheduler_multicore.c