From: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
To: Shijith Thotton <sthotton@marvell.com>,
Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Cc: Shijith Thotton <sthotton@marvell.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] app/test-eventdev: wait for workers before cryptodev destroy
Date: Mon, 13 Jun 2022 06:38:38 +0000 [thread overview]
Message-ID: <PH0PR18MB40864950B6576EFD4B34CE3EDEAB9@PH0PR18MB4086.namprd18.prod.outlook.com> (raw)
In-Reply-To: <cafd91ddf913c856bd92f77a9c99dc1da35627db.1654170277.git.sthotton@marvell.com>
[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]
> -----Original Message-----
> From: Shijith Thotton <sthotton@marvell.com>
> Sent: Thursday, June 2, 2022 5:15 PM
> To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
> Cc: Shijith Thotton <sthotton@marvell.com>; dev@dpdk.org; Pavan
> Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
> Subject: [PATCH] app/test-eventdev: wait for workers before cryptodev
> destroy
>
> Destroying cryptodev resources before exiting workers are not safe.
> Moved cryptodev destroy after worker thread exit in main thread.
>
> Fixes: de2bc16e1bd1 ("app/eventdev: add crypto producer mode")
>
> Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> ---
> app/test-eventdev/evt_main.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c
> index c5d63061bf..b785e603ee 100644
> --- a/app/test-eventdev/evt_main.c
> +++ b/app/test-eventdev/evt_main.c
> @@ -159,9 +159,6 @@ main(int argc, char **argv)
> if (test->ops.ethdev_rx_stop)
> test->ops.ethdev_rx_stop(test, &opt);
>
> - if (test->ops.cryptodev_destroy)
> - test->ops.cryptodev_destroy(test, &opt);
> -
> rte_eal_mp_wait_lcore();
>
> if (test->ops.test_result)
> @@ -173,6 +170,9 @@ main(int argc, char **argv)
> if (test->ops.eventdev_destroy)
> test->ops.eventdev_destroy(test, &opt);
>
> + if (test->ops.cryptodev_destroy)
> + test->ops.cryptodev_destroy(test, &opt);
> +
> if (test->ops.mempool_destroy)
> test->ops.mempool_destroy(test, &opt);
>
> --
> 2.25.1
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 15289 bytes --]
next prev parent reply other threads:[~2022-06-13 6:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 11:45 Shijith Thotton
2022-06-13 6:38 ` Pavan Nikhilesh Bhagavatula [this message]
2022-06-13 6:59 ` Jerin Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PH0PR18MB40864950B6576EFD4B34CE3EDEAB9@PH0PR18MB4086.namprd18.prod.outlook.com \
--to=pbhagavatula@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=sthotton@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).