From: "Luse, Paul E" <paul.e.luse@intel.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] Issue/Question with multi-process and CryptoDev using AESNI_MB
Date: Thu, 11 Mar 2021 19:36:23 +0000 [thread overview]
Message-ID: <BYAPR11MB3831A342C1D051AD8D919FDEAD909@BYAPR11MB3831.namprd11.prod.outlook.com> (raw)
Hi All,
I'm having an issue with the following scenario with SPDK-based applications built w/DPDK
using CryptoDev in a primary/secondary process setup.
Primary Process: An application that does crypto and properly initializes aesni_mb
Secondary Process: An application that does not use crypto so does not initialize aesni_mb
What I'm seeing:
1) Primary Process: Initializes normally
2) Secondary Process: At DPDK initialization time rte_eal_init()->rte_bus_scan()->vdev_scan()
Is called in that order and then in vdev_scan() there's a block of code that sends a msg to the primary
process to get device names that it's initialized so the secondary ends up adding the aesni
device and initializing it.
3) Process 2: Exits but because this SPDK application did not initialize crypto, it does
not call rte_vdev_uninit() so on exit gets several memory leaks from allocations
made during DPDK’s initialization of aesni, for example, alloc_mb_mgr()
It seems as though the secondary side should be tearing down aesni_mb assuming that
it was not the one who called rte_cryptodev_pmd_create() but I am fairly new to these
code sequences so am looking for some advice on what makes sense here to address the
issue.
thanks
Paul
next reply other threads:[~2021-03-14 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 19:36 Luse, Paul E [this message]
2021-03-23 15:11 ` Luse, Paul E
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=BYAPR11MB3831A342C1D051AD8D919FDEAD909@BYAPR11MB3831.namprd11.prod.outlook.com \
--to=paul.e.luse@intel.com \
--cc=dev@dpdk.org \
/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).