crypto/scheduler: fix slave init attach
PATCH 1/1 crypto/scheduler: fix slave init attach
Fixes 881851676940 ("crypto/scheduler: improve commandline parsing")
This patch fix the slaves attaching initially.
Originally, the scheduler will try to attach the slaves passed by the cmdline option in the initial stage, this may break the sequence of the slaves inside the scheduler.
Signed-off-by Fan Zhang <[email protected]>
--- drivers/crypto/scheduler/scheduler_pmd.c | 21 --------------------- 1 file changed, 21 deletions(-)
drivers/crypto/scheduler/scheduler_pmd.c +0 -21
@@ -160,27 +160,6 @@ cryptodev_scheduler_create(const char *name, }for (i =0 ; i < init_params->nb_slaves; i++) { -struct rte_cryptodev *slave_dev = -rte_cryptodev_pmd_get_named_dev ( - init_params->slave_names[i]); - -/* if the slave dev exists in the system, attach it */ -if (slave_dev) { -int ret =rte_cryptodev_scheduler_slave_attach ( - dev->data->dev_id, - slave_dev->data->dev_id); - -if (ret <0 ) -return ret; - -CS_LOG_INFO ("Scheduler %s attached slave %s\n" , - dev->data->name, - init_params->slave_names[i]); - -continue ; - } - -/* if the slave doesn't exist, store and attach later*/ sched_ctx->init_slave_names[sched_ctx->nb_init_slaves] = rte_zmalloc_socket( NULL,
Signature · 1 line
2.7.4
Quoted 11 lines
-----Original Message-----
From: Zhang, Roy Fan
Sent: Wednesday, April 19, 2017 2:42 PM
To: [email protected]
Cc: De Lara Guarch, Pablo; [email protected]
Subject: [PATCH]crypto/scheduler: fix slave init attachFixes 881851676940 ("crypto/scheduler: improve commandline parsing")
Quoted 7 lines
This patch fix the slaves attaching initially.
Originally, the scheduler will try to attach the slaves passed by the cmdline option in the initial stage, this may break the sequence of the slaves inside the scheduler.
Signed-off-by Fan Zhang <[email protected]>
Squashed into the affected commit in the subtree.
Thanks,
Pablo