DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] rings PMD detaching
@ 2016-02-02  1:37 Mauricio Vásquez
  2016-02-02  5:41 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: Mauricio Vásquez @ 2016-02-02  1:37 UTC (permalink / raw)
  To: dev, Bruce Richardson

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-02  5:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02  1:37 [dpdk-dev] rings PMD detaching Mauricio Vásquez
2016-02-02  5:41 ` David Marchand

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).