> > > +static void
> > > +mlx5_crypto_sym_session_clear(struct rte_cryptodev *dev,
> > > + struct rte_cryptodev_sym_session *sess) {
> > > + struct mlx5_crypto_priv *priv = dev->data->dev_private;
> > > + struct mlx5_crypto_session *sess_private_data =
> > > + get_sym_session_private_data(sess,
> > > +dev->driver_id);
> > > +
> > > + if (unlikely(sess_private_data == NULL)) {
> > > + DRV_LOG(ERR, "Failed to get session %p private data.",
> > > + sess_private_data);
> > > + return;
> > > + }
> > > + mlx5_crypto_dek_destroy(priv, sess_private_data->dek);
> > > + DRV_LOG(DEBUG, "Session %p was cleared.", sess_private_data); }
> >
> > Memory leakage, mempool is not freed.
>
> Yes, good catch, this part was missed.
>
> > IMO, this driver is not properly tested with the unit test app.
>
> The only app we tested until now is l2fwd_crypto and it works fine!
> We can add it to doc.
>
> > Please add a note in the documentation that it is tested with autotest.
>
>
> The next app we want to test with, is test-crypto-perf.
>
I would recommend to run the test app first.
It will catch most of your basic bugs like the one above.- Re: [dpdk-dev] [EXT] [PATCH v3 01/1... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 01/1... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 01/1... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 01/15] dr... Bruce Richardson
- [dpdk-dev] [PATCH v3 04/15] crypto/mlx5: add basic operat... Matan Azrad
- [dpdk-dev] [PATCH v3 02/15] crypto/mlx5: add DEK object m... Matan Azrad
- [dpdk-dev] [PATCH v3 05/15] crypto/mlx5: support queue pa... Matan Azrad
- [dpdk-dev] [PATCH v3 03/15] crypto/mlx5: support session ... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 03/15] crypto/mlx5: s... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 03/15] crypto/mlx... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 03/15] crypto... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 03/15] cr... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 03/1... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 03/1... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 03/1... Akhil Goyal
- Re: [dpdk-dev] [EXT] [PATCH v3 03/1... Matan Azrad
- Re: [dpdk-dev] [EXT] [PATCH v3 03/1... Thomas Monjalon
- [dpdk-dev] [PATCH v3 06/15] crypto/mlx5: add dev stop and... Matan Azrad
- [dpdk-dev] [PATCH v3 08/15] crypto/mlx5: create login obj... Matan Azrad
- [dpdk-dev] [PATCH v3 07/15] crypto/mlx5: add memory regio... Matan Azrad
- [dpdk-dev] [PATCH v3 10/15] crypto/mlx5: add keytag devic... Matan Azrad

