From: "Mauricio Vásquez" <mauricio.vasquezbernal@studenti.polito.it>
To: dev@dpdk.org, Bruce Richardson <bruce.richardson@intel.com>
Subject: [dpdk-dev] rings PMD detaching
Date: Mon, 1 Feb 2016 20:37:23 -0500 [thread overview]
Message-ID: <CAPwdgqi1Uvg2MJiT_08AcO-kBUrAZjrZVYTBweA3-xzm=FVpuA@mail.gmail.com> (raw)
Hello Everybody,
I was wondering if there were a way to detach (delete) a ring pmd device
created with rte_eth_from_rings. I realized that rte_eth_dev_detach does
not work in this case because there is a comparison between the device's
name and the driver's name in rte_eal_vdev_uninit, then devices created
with arbitrary names can not be uninitialized.
My question is how to implement it?, I have two ideas on mind:
- make rte_pmd_ring_devuninit a public function, then the user can call
this using as argument the name of the device.
- modify rte_eal_vdev_uninit in such a way that there is not any comparison
based on the dev name, probably it will require to add some extra field in
the rte_eth_dev structure to distinguish between the different virtual
devices.
Any idea or comment about it?
Thank you very much
next reply other threads:[~2016-02-02 1:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 1:37 Mauricio Vásquez [this message]
2016-02-02 5:41 ` David Marchand
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='CAPwdgqi1Uvg2MJiT_08AcO-kBUrAZjrZVYTBweA3-xzm=FVpuA@mail.gmail.com' \
--to=mauricio.vasquezbernal@studenti.polito.it \
--cc=bruce.richardson@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).