> -----Original Message----- > From: Power, Ciara <ciara.po...@intel.com> > Sent: Wednesday, September 21, 2022 1:51 PM > To: Zhang, Roy Fan <roy.fan.zh...@intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.gua...@intel.com>; Akhil Goyal <gak...@marvell.com> > Cc: dev@dpdk.org; Ji, Kai <kai...@intel.com>; Power, Ciara > <ciara.po...@intel.com>; Mrozowicz, SlawomirX > <slawomirx.mrozow...@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.zh...@intel.com > Cc: slawomirx.mrozow...@intel.com > > Signed-off-by: Ciara Power <ciara.po...@intel.com> > > ---
Acked-by: Fan Zhang <roy.fan.zh...@intel.com>