From: Marcin Kerlin <marcinx.kerlin@intel.com>
To: dev@dpdk.org
Cc: pablo.de.lara.guarch@intel.com, thomas.monjalon@6wind.com,
Marcin Kerlin <marcinx.kerlin@intel.com>
Subject: [dpdk-dev] [PATCH 0/2] add ensure consistent device data in multiprocess mode
Date: Fri, 29 Jul 2016 17:56:57 +0200 [thread overview]
Message-ID: <1469807819-7905-1-git-send-email-marcinx.kerlin@intel.com> (raw)
This patch ensure not overwrite device data in the multiprocess application.
1)Changes in the library introduces continuity in device data rte_eth_dev_data[]
common for to all processes. Functionality detach cleans data of detachable
device and leaves space for other devices or for the next run app.
2)Changes in application testpmd allow secondary process to attach the mempool
created by primary process rather than create new and in the case of quit or
force quit to free devices of this process from shared array rte_eth_dev_data[].
Marcin Kerlin (2):
lib/librte_ether: ensure not overwrite device data in multiprocess app
app/testpmd: fix handling of multiprocess
app/test-pmd/testpmd.c | 30 +++++++++++-
app/test-pmd/testpmd.h | 1 +
lib/librte_ether/rte_ethdev.c | 87 ++++++++++++++++++++++++++++++----
lib/librte_ether/rte_ethdev.h | 23 +++++++++
lib/librte_ether/rte_ether_version.map | 8 ++++
5 files changed, 139 insertions(+), 10 deletions(-)
--
1.9.1
next reply other threads:[~2016-07-29 14:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-29 15:56 Marcin Kerlin [this message]
2016-07-29 15:56 ` [dpdk-dev] [PATCH 1/2] lib/librte_ether: ensure not overwrite device data Marcin Kerlin
2016-07-29 15:56 ` [dpdk-dev] [PATCH 2/2] app/testpmd: fix handling of multiprocess Marcin Kerlin
2016-08-01 8:44 ` [dpdk-dev] [PATCH 0/2] add ensure consistent device data in multiprocess mode Kerlin, MarcinX
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=1469807819-7905-1-git-send-email-marcinx.kerlin@intel.com \
--to=marcinx.kerlin@intel.com \
--cc=dev@dpdk.org \
--cc=pablo.de.lara.guarch@intel.com \
--cc=thomas.monjalon@6wind.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).