crypto/mrvl: print message if DMA mem is initialized
In case MUSDK dma memory has been already initialized by a different driver (and perhaps do the different size) mv_sys_dma_mem_init() will return -EEXIST error code. Printing extra message makes it clear. Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
This commit is contained in:
parent
4816fb37ce
commit
5f4a38008d
@ -41,9 +41,7 @@
|
||||
|
||||
#include "rte_mrvl_pmd_private.h"
|
||||
|
||||
#ifndef RTE_MRVL_MUSDK_DMA_MEMSIZE
|
||||
#define RTE_MRVL_MUSDK_DMA_MEMSIZE 41943040
|
||||
#endif
|
||||
#define MRVL_MUSDK_DMA_MEMSIZE 41943040
|
||||
|
||||
static uint8_t cryptodev_driver_id;
|
||||
|
||||
@ -766,9 +764,14 @@ cryptodev_mrvl_crypto_create(const char *name,
|
||||
* ret == -EEXIST is correct, it means DMA
|
||||
* has been already initialized.
|
||||
*/
|
||||
ret = mv_sys_dma_mem_init(RTE_MRVL_MUSDK_DMA_MEMSIZE);
|
||||
if ((ret < 0) && (ret != -EEXIST))
|
||||
return ret;
|
||||
ret = mv_sys_dma_mem_init(MRVL_MUSDK_DMA_MEMSIZE);
|
||||
if (ret < 0) {
|
||||
if (ret != -EEXIST)
|
||||
return ret;
|
||||
|
||||
MRVL_CRYPTO_LOG_INFO(
|
||||
"DMA memory has been already initialized by a different driver.");
|
||||
}
|
||||
|
||||
sam_params.max_num_sessions = internals->max_nb_sessions;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user