> -----Original Message-----
> From: Power, Ciara <[email protected]>
> Sent: Wednesday, September 21, 2022 1:51 PM
> To: Zhang, Roy Fan <[email protected]>; De Lara Guarch, Pablo
> <[email protected]>; Akhil Goyal <[email protected]>
> Cc: [email protected]; Ji, Kai <[email protected]>; Power, Ciara
> <[email protected]>; Mrozowicz, SlawomirX
> <[email protected]>
> 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: [email protected]
> Cc: [email protected]
> 
> Signed-off-by: Ciara Power <[email protected]>
> 
> ---

Acked-by: Fan Zhang <[email protected]>

Reply via email to