[PATCH v3 2/5] crypto/ipsec_mb: fix session creation for sessionless

Zhang, Roy Fan roy.fan.zhang at intel.com
Wed Sep 21 15:33:55 CEST 2022


> -----Original Message-----
> From: Power, Ciara <ciara.power at intel.com>
> Sent: Wednesday, September 21, 2022 1:51 PM
> To: Zhang, Roy Fan <roy.fan.zhang at intel.com>; De Lara Guarch, Pablo
> <pablo.de.lara.guarch at intel.com>; Akhil Goyal <gakhil at marvell.com>
> Cc: dev at dpdk.org; Ji, Kai <kai.ji at intel.com>; Power, Ciara
> <ciara.power at intel.com>; Mrozowicz, SlawomirX
> <slawomirx.mrozowicz at intel.com>
> Subject: [PATCH v3 2/5] crypto/ipsec_mb: fix session creation for sessionless
> 
> Currently, for a sessionless op, the session taken from the mempool
> contains some values previously set by a testcase that does use a
> session. This is due to the session object not being reset before going
> back into the mempool.
> 
> This caused issues when multiple sessionless testcases ran, as the
> previously set objects were being used for the first few testcases, but
> subsequent testcases used empty objects, as they were being correctly
> reset by the sessionless testcases.
> 
> To fix this, the session objects are now reset before being returned to
> the mempool for session testcases. In addition, rather than pulling the
> session object directly from the mempool for sessionless testcases, the
> session_create() function is now used, which sets the required values,
> such as nb_drivers.
> 
> Fixes: c75542ae4200 ("crypto/ipsec_mb: introduce IPsec_mb framework")
> Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")
> Cc: roy.fan.zhang at intel.com
> Cc: slawomirx.mrozowicz at intel.com
> 
> Signed-off-by: Ciara Power <ciara.power at intel.com>
> 
> ---

Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the dev mailing list