questions about crypto_scheduler

Zhangfei Gao zhangfei.gao at linaro.org
Fri Dec 16 07:54:48 CET 2022


Hi, Akhil

Excuse me for the question.

I am testing UADK crypto performance with dpdk-test-crypto-perf, and 
want to use multi-thread or multi-session for better performance, so 
trying to use crypto_scheduler.

CMD like
sudo dpdk-test-crypto-perf -l 1,2 --vdev "crypto_uadk0" --vdev 
"crypto_uadk1" --vdev 
"crypto_scheduler,worker=crypto_uadk0,worker=crypto_uadk1,mode=round-robin" 
-- --devtype crypto_scheduler --optype cipher-only --buffer-sz 8192

Though multi-worker is set but found it is just using one worker.
Since uadk_cryptodev_probe gets the same dev->driver_id = 
uadk_cryptodev_driver_id in multi-probe.

Then scheduler_pmd_sym_session_configure will treat only one worker,
and call rte_cryptodev_sym_session_create only once.
if (configured_sess[j].driver_id == worker->driver_id)
         break

Do I misuse the crypto_scheduler for the multi-thread or multi-session.

Thanks in advance.



More information about the dev mailing list