[PATCH v2 2/6] crypto/scheduler: use unified session

Ji, Kai kai.ji at intel.com
Thu Sep 22 16:04:02 CEST 2022


Acked-by: Kai Ji <kai.ji at intel.com>

> -----Original Message-----
> From: Akhil Goyal <gakhil at marvell.com>
> Sent: Wednesday, September 21, 2022 4:03 PM
> To: dev at dpdk.org
> Cc: thomas at monjalon.net; david.marchand at redhat.com;
> hemant.agrawal at nxp.com; vattunuru at marvell.com;
> ferruh.yigit at xilinx.com; andrew.rybchenko at oktetlabs.ru;
> konstantin.v.ananyev at yandex.ru; jiawenwu at trustnetic.com;
> yisen.zhuang at huawei.com; irusskikh at marvell.com; jerinj at marvell.com;
> adwivedi at marvell.com; maxime.coquelin at redhat.com; chandu at amd.com;
> ruifeng.wang at arm.com; ajit.khaparde at broadcom.com;
> anoobj at marvell.com; De Lara Guarch, Pablo
> <pablo.de.lara.guarch at intel.com>; matan at nvidia.com; g.singh at nxp.com;
> Yang, Qiming <qiming.yang at intel.com>; Wu, Wenjun1
> <wenjun1.wu at intel.com>; jianwang at trustnetic.com; Wu, Jingjing
> <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>;
> ndabilpuram at marvell.com; Zhang, Roy Fan <roy.fan.zhang at intel.com>;
> Akhil Goyal <gakhil at marvell.com>
> Subject: [PATCH v2 2/6] crypto/scheduler: use unified session
> 
> From: Fan Zhang <roy.fan.zhang at intel.com>
> 
> This patch updates the scheduler PMD to use unified session data structure.
> Previously thanks to the private session array in cryptodev sym session there
> are no necessary change needed for scheduler PMD other than the way ops
> are enqueued/dequeued. The patch inherits the same design in the original
> session data structure to the scheduler PMD so the cryptodev sym session
> can be as a linear buffer for both session header and driver private data.
> 
> With the change there are inevitable extra cost on both memory
> (64 bytes per session per driver type) and cycle count (set the correct session
> for each cop based on the worker before enqueue, and retrieve the original
> session after dequeue).
> 
> Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
> Signed-off-by: Akhil Goyal <gakhil at marvell.com>
> ---



More information about the dev mailing list